Answer to Question #32702 in Other Programming & Computer Science for Andrew Loff
I want to make bat (windows) file that will move * files from desktop to x folder and then make shortcuts on the desktop (they must be linked to files in x folder).
So: the problem is: There is no way to make shortcut using bat. Only using third-party applications... Or/and using scripts.
I need the program/script... that will get their adress, link shortcut to every single file (...\x\s.exe, desktop\s.lnk; ...\l.txt, desktop\l.lnk)...
Create ashortcut on the desktop using vbs: setobjWSHShell = CreateObject("WScript.Shell")
'command line arguments 'TODO: error checking sShortcut= objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(0)) sTargetPath= objWSHShell.ExpandEnvironmentStrings(WScript.Arguments.Item(1))