Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Context: I have folders with presentations being created dynamically except currently an instance of our ppt&macro is being dropped in each folder with the presentation. The presentation will only ever be run on the network so now as changes are made to our presentation macros, they aren't retroactive. I want to fix this by now instead just having a shortcut plopped in with each presentation to our main ppt&macro. However, my vba code works off of active location for filepaths.

Question: How can I change the Start In property for a shortcut with extension .lnk directly from CMD or a batch file? I have tried researching and most I can find is how to make the shortcut or how to make a shortcut of CMD. All of the Start In property modifying instructables I found are purely just telling me to right click it and go to its properties. Doing it manually isn't an option.

Alternatively: I will also accept powershell solutions, yet would be very cumbersome as the proprietary software I use requires quite a lot of fandangling in the code to perform a powershell command.

share|improve this question
I can copy a shortcut fine, but just need to change its Start In. And an arduous process that they are going through for a single value seems inefficient. – Alexander Jun 23 '14 at 18:54
Have a look at this question… (I was not able to find any native tools... so you're left either with scripting, finding something 3rd party or writing your own: – wmz Jun 23 '14 at 20:32
That's what I was afraid of. However, those are great resources. Thank you very much! – Alexander Jun 24 '14 at 14:54

You must log in to answer this question.

Browse other questions tagged .