Open your favourite registry editor (regedit will do just fine)
Go to "HKEY_CLASSES_ROOT" Locate the "Folder" key Open the "shell" branch Create a new key called "Command Prompt Here" Open this key and create a new key called "command" Open "command" and double click the "default" entry (REG_SZ) Type the following :
cmd.exe /k pushd %L
Close regedit.
You don't need to restart the computer to activate this. Just open Explorer, right click on a folder and choose "Command Prompt Here". This will open a Command Prompt, in the location of the currently selected folder.
© Corelan Consulting BV. All rights reserved. The contents of this page may not be reproduced, redistributed, or republished, in whole or in part, for commercial or non-commercial purposes without prior written permission from Corelan Consulting bv. See our Terms of Use & Privacy Policy (https://www.corelan.be/index.php/legal) for more details.
Subscribe to get the latest posts sent to your email.
Type your email…
Subscribe
Peter Van Eeckhoutte is the founder of Corelan and a globally recognized expert in exploit development and vulnerability research. With over two decades in IT security, he built Corelan into a respected platform for deep technical research, hands-on training, and knowledge sharing. Known for his influential exploit development tutorials, tools, and real-world training, Peter combines a strong research mindset with a passion for education—helping security professionals understand not just how exploits work, but why.
Tags: