View Full Version : Creating shortcuts in XP
evilpenguin
04-19-2006, 01:05 PM
I'm working on a studio project and I need to create a windows shortcut to a file using only CLI commands. Does anyone know if there is a simple way to do this?
GKusnick
04-19-2006, 01:25 PM
By CLI you mean a Windows batch file? I don't know of a way to do it directly using batch commands, but it's easily done in VBScript or JScript using WshShell.CreateShortcut:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/d91b9d23-a7e5-4ec2-8b55-ef6ffe9c777d.asp
You can then invoke the script file from a command prompt or batch file using wscript.exe or cscript.exe.
evilpenguin
04-19-2006, 01:41 PM
Thanks, that looks like it will do the trick!
vBulletin® v3.7.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.