Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 at 18:54
    
Have a look at this question stackoverflow.com/questions/484560/… (I was not able to find any native tools... so you're left either with scripting, finding something 3rd party or writing your own: msdn.microsoft.com/en-us/library/bb776891%28VS.85%29.aspx) –  wmz Jun 23 at 20:32
    
That's what I was afraid of. However, those are great resources. Thank you very much! –  Alexander Jun 24 at 14:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.