FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
atom/script/create-shortcut.cmd at master · ForNeVeR/atom · GitHub
ForNeVeR
atom
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
atom
/
script
/
create-shortcut.cmd
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 491 Bytes
Breadcrumbs
atom
/
script
/
create-shortcut.cmd
Copy path
File metadata and controls
23 lines (18 loc) · 491 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@
echo
off
set
USAGE
=
Usage:
%0
source name-on-desktop
if
[
%1
]
==
[] (
echo
%USAGE%
exit
1
)
if
[
%2
]
==
[] (
echo
%USAGE%
exit
2
)
set
SCRIPT
=
"
%TEMP%
\
%RANDOM%
-
%RANDOM%
-
%RANDOM%
-
%RANDOM%
.vbs
"
echo
Set oWS = WScript.CreateObject(
"
WScript.Shell
"
)
>>
%SCRIPT%
echo
sLinkFile =
"
%USERPROFILE%
\Desktop\
%2
.lnk
"
>>
%SCRIPT%
echo
Set oLink = oWS.CreateShortcut(sLinkFile)
>>
%SCRIPT%
echo
oLink.TargetPath =
%1
>>
%SCRIPT%
echo
oLink.Save
>>
%SCRIPT%
cscript
/nologo
%SCRIPT%
del
%SCRIPT%
Back
|
FazBrowse Home
|
New Git URL