Open the command prompt with elevated permissions in the current folder

In Windows, by default, when you are prompted to open a Command Prompt window with elevated permissions, it opens to the C: \ Windows \ System32 folder. This option is not particularly useful. To change a folder, you need to type a lot of paths on your hard drive.

command prompt

Discover more articles in search results.

But with the coming of Windows 8, 8.1 and 10, open it commant prompt directly to the folder you want can be done very easily through the file explorer. Just follow these steps:

1. Open the folder you want in File Explorer

command4
2. Go to the File tab -> Open Command Prompt -> Open Command Prompt as Administrator

command5
3. Say "Yes" to the UAC confirmation and you are ready!

command3

An even faster way is to add the "Open Command Prompt as Administrator" item directly to the Quick Access Toolbar. Right-click on the previous command and select "Add to Quick Access Toolbar". You will then be able to open it with a single click from any folder you have opened in File Explorer.

command2

command1

That's it.


Google preferences

Leave a Comment

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).