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.

I'm getting an access denied message when I try to create sub-directories of certain directories from the command line in Vista. I can create folders from the GUI, but I want to be able to avoid the pointing and clicking.

Is there a sudo for windows that will let me past this?

share|improve this question

2 Answers 2

up vote 10 down vote accepted

Yes.

Tap your Windows key to bring up your start menu, and type cmd to bring up the prompt program, you should now be able to right click on the icon and select Run as Administrator.

After some UAC clicking you should now have a prompt with escalated privileges.

share|improve this answer
1  
Thanks much. Enjoy your increased reputation. –  Eric Wilson Aug 20 '09 at 12:39
1  
Simple, yet nice. Very good alternative to the other answer :P –  cp2141 Sep 10 '09 at 19:22

Another alternative would be to use the runas command from the command prompt (you could also put it in a batchfile).

runas /user:computername\useraccount mkdir thedirtomake\somesubdir\

All you need to do is fill in the computer and account names.

share|improve this answer
1  
+1 OP was after command line solution. He also asked about sudo in Windows and that's what runas is. –  Piotr Dobrogost Mar 29 '11 at 21:00

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.