QUOTE (ckislam @ Jul 6 2007, 02:48 PM)

hello,
i dont want want to download a command to generate my shortcuts.
i was asking how to create shortcuts with the usual windows commands from the console.
is it possible ?
thanks
If you
really want to do this by typing out commands in the console, then just run these commands one by one:
CODE
echo > s.vbs set Ws = WScript.CreateObject("WScript.Shell")
echo >>s.vbs set Os = Ws.CreateShortcut("%UserProfile%\Desktop\Messenger.lnk")
echo >>s.vbs Os.TargetPath = "%ProgramFiles%\Windows Live\Messenger\Msnmsgr.exe"
echo >>s.vbs Os.WorkingDirectory = "%ProgramFiles%\Windows Live\Messenger"
echo >>s.vbs Os.Save
echo.>>s.vbs
s
I suppose the commands are pretty self-explanatory. The
CreateShortcut line is the full path to the shortcut you want to create,
TargetPath is the full path of the program, and
WorkingDirectory line is required for some programs to launch properly. Windows Live Messenger however doesn't require this line and you can skip it. The shortcut will be created when you type "s" and press enter.