Showing posts with label CMD. Show all posts
Showing posts with label CMD. Show all posts

Thursday, August 31, 2023

Add Command Prompt to the Context menu Windows 10, 11

Add Command Prompt to the Context menu


 

If you’re fond of the old Command Prompt (cmd.exe), you can add the traditional “Open Command window here” option back in the context menu for file system folders and drives, using a Registry edit.

Method 1

This method creates a new menu item named “Open command window here” by adding the necessary context menu registry entries.

  1. Open Notepad.
  2. Copy the following lines and paste them in Notepad:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
    @="@shell32.dll,-8506"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt]
    @="@shell32.dll,-8506"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt\command]
    @="cmd.exe /s /k pushd \"%V\""
    
    [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt]
    @="@shell32.dll,-8506"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Drive\shell\cmdprompt\command]
    @="cmd.exe /s /k pushd \"%V\""
    
  3. Save the file as “cmdhere.reg
  4. Double-click the file to apply the settings to the registry.

Alternately, you can download the following registry file:

 

Monday, December 22, 2014

Friday, November 14, 2014

Print full path of an executable command in Windows



If you using windows 7, do this :
where foo

where foo | clip
if older than win 7 do this
http://www.codeproject.com/Articles/3784/Whereis-for-Windows
in case you dont have account in codeproject, here external link from article above
(EXE)
http://www.mediafire.com/download/rlauxn3b4rto8my/whereis_bin.zip
(SOURCE C# .NET)
http://www.mediafire.com/download/zjjtwuj4u2e9aa5/whereis_src.zip

taken from:
http://superuser.com/questions/248334/how-can-i-print-full-path-of-an-executable-command-in-windows

Friday, October 31, 2014

How to move all file in sub-folder to parrent folder ( CMD )



for /d %A in ("C:\Users\mynamer\folder\*") do @(pushd "%A"&(for /r /d %B in (*) do @move /y "%B\*" "%A" 2>nul)&popd)