Command Prompt Here

          Adding 'Command Prompt Here' link in the right click context menu in Windows XP facilitates opening 'command prompt' at desired folder.

How To Add 'Command Prompt Here' option:
          Open a notepad. Copy and paste the presented cmdph.bat code and save file as cmdph.bat. Now click Start->Run... to open Run dialog box. Type 'sendto' and press ENTER to open 'SendTo' folder. Now create a new shortcut. When it asks for location of file, click browse, locate cmdph.bat, select it and click 'OK'. Click next and type the name for the shortcut. Type this name as 'Command Prompt Here' and click finish. The icon of the shortcut is batfile icon. Note that the shortcut name and icon will appear in right click context menu when you right click on a file or folder and see 'send To' option. You can use any icon of your choice to decorate it.

cmdph.bat code

@echo off
dir /a:d /b %1 1>nul 2>nul
if %errorlevel%==0 goto pass
set parent="%~dp1"
echo %~nx1 is not a directory, redirecting to parent directory...
cd /d %parent%
echo.
goto allowed
:pass
cd /d %1
:allowed
%ComSpec%

With this you can:

  1. Open command prompt at the specified folder with a right click.
  2. Open parent folder by right clicking a file in folder.
Advantages over other tools including Microsoft Powertoy:
  1. It handles folders with '&' in their name where Microsoft Powertoy gives error.
Related Posts:
Leave a comment


1 comment:

Unknown said...

Norton.com/setup | www.norton.com/setup | Norton setup product key, install Norton | activation your product. Norton.com/setup 1844-516-0689 Download & Install Norton antivirus Product Visit activation website www.notroncomsetupactivation.com . Norton Setup Help & Norton Customer support will help you resolve any Malware/virus related issues remotely Call Toll Free Number + 1844-516-0689. For any help regarding Norton Antivirus you can directly call on Norton Antivirus Phone Number + 1844-516-0689.Toll-Free to get instant solution Norton.com/setup+ 1844-516-0689.Call us at ourNorton 360 by Symantec Helpline Number+ 1844-516-0689.to experience the quick and bestNorton.com/setupHelpline Number+ 1844-516-0689. norton.com/setup + 1844-516-0689. www.norton.com/setup l login.norton.com/setup... Norton.com/setup+1844-516-0689 norton.com/setup Norton product key activation, install Norton, Norton, norton.com/setup , Symantec Norton, Norton setup, Norton technical support number, norton.com login, enter Norton product key, Norton antivirus, Norton internet security, Norton security, norton.com/setup sign in, Norton antivirus setup, Norton product key activation, download Norton security, norton.com/setup usa, reinstall Norton Norton.com/setup+1844-516-0689..

Post a Comment