I’m normally a Linux guy, but I need to write a batch script on Windows to change the target of some shortcuts. Is there a command to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I doubt there is a way to do it with a batch script. It’s doable in VBScript, though.
Save the script in a file ending in vbs and run it from the command line using
cscript whatever.vbs.(Don’t be fooled by the name —
CreateShortcutis used to both create and modify shortcuts.)