`Access is denied` when I try to create a directory in Windows Vista . .

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?

2 Answers

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.

1

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like