Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to create a shortcut in a batch file

@echo off

set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"

echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%USERPROFILE%Desktopmyshortcut.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "D:myfile.extension" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

cscript /nologo %SCRIPT%
del %SCRIPT%
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell command history file 
Shell :: install github desktop on arch linux 
Shell :: get public ipv6 linux 
Shell :: access windows files from windows ubuntu 
Shell :: get mac address linux 
Shell :: cdo mean of multiple files 
Shell :: linux append group 
Shell :: pg_hba.conf location ubuntu 18.04 
Shell :: send files via ssh 
Shell :: snap install chrome 
Shell :: stop google process linux 
Shell :: aws cli config profile 
Shell :: if else in mac terminal 
Shell :: git commit and tag 
Shell :: reset iis 
Shell :: how to install mono on aws linux 
Shell :: sdkman 
Shell :: install vnc on ubuntu 
Shell :: git push heroku master 
Shell :: remove symfony ubuntu 
Shell :: sed add word to beginning of line 
Shell :: install tor linux 
Shell :: install ionic cli specific version 
Shell :: ubuntu terminal find file recursive 
Shell :: github setup 
Shell :: install python3 and python pip in docker 
Shell :: install neovim ubuntu 
Shell :: using github personal github token when cloning a repo 
Shell :: install cairo 
Shell :: unmount nfs 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =