-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-shortcut.cmd
23 lines (15 loc) · 995 Bytes
/
make-shortcut.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo Installing Editor...
@set PWS=powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile
@set TARGET='node.exe'
@set WORKDIR='%AppData%\npm\node_modules\mdne'
@set ICON='%AppData%\npm\node_modules\mdne\app.ico'
@set ARGS='index.js'
@set SHORTCUT='%HomeDrive%%HomePath%\Desktop\MDNE.lnk'
%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%SHORTCUT%); $S.TargetPath = %TARGET%; $s.Arguments = %ARGS%; $s.WorkingDirectory = %WORKDIR%; $s.IconLocation = %ICON%; $S.WindowStyle = 7; $S.Save()"
@set TARGET='node.exe'
@set WORKDIR='%AppData%\npm\node_modules\mdne'
@set ICON='%AppData%\npm\node_modules\mdne\app.ico'
@set ARGS='index.js'
@set SHORTCUT='%AppData%\Microsoft\Windows\SendTo\MDNE.lnk'
%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%SHORTCUT%); $S.TargetPath = %TARGET%; $s.Arguments = %ARGS%; $s.WorkingDirectory = %WORKDIR%; $s.IconLocation = %ICON%; $S.WindowStyle = 7; $S.Save()"
@pause