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.

Is it possible to put commands into a shortcut target? I recently swapped hard drives and now I've got a bunch of shortcuts going to the wrong drive letter. I really want to get "cd.." working - is this possible?

share|improve this question
    
I really want to get "cd.." working[.] I'm not sure what you're trying to do. Do you just need a shortcut to the parent directory. –  sudo Jan 23 '13 at 19:24

2 Answers 2

Why not just change the drive letter of the shortcut using the properties selection.

share|improve this answer
    
i could do that but if i change drives again in the future, then i'll have the same problem. in question is the shortcuts that run different games for dosbox that i've made myself. there's over 100 of them, and i would want to copy them going onto new systems in the future. but i don't fancy doing this job more than once if i don't have to.. –  user192240 Jan 23 '13 at 18:01
1  
Another thing you can do is possibly change the drive assignments from the drive manager....all except c: –  mdpc Jan 23 '13 at 18:02

Let's say the Old drive letter was O: and your New drive letter is N:.

You can do any of the following:

  • change the drive letter from O: to N: in the shortcuts' properties
  • change the drive letter of your partition from N: to O: to match the old shortcuts
  • map the new drive's root as a network drive (\\localhost\N$) to the old drive letter O:
  • make a virtual drive O: that maps to your new drive's root: subst O: N:\
share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.