New
#1
NirCmd: Copy Path vs. Copy File Name
Merging the following code in the Registry adds a "Copy File Path" context-menu in File Explorer and it works properly.
Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\CopyFilePath] @="Copy File Path" [HKEY_CLASSES_ROOT\*\shell\CopyFilePath\command] @="nircmd.exe execmd (echo.|set /p=\"%1\") | clip"
The following code for Copy File Name does not work (the file name is not copied).
Code:[HKEY_CLASSES_ROOT\*\shell\CopyFileName] @="Copy File Name" [HKEY_CLASSES_ROOT\*\shell\CopyFileName\command] @="nircmd.exe execmd (echo.|set /p=\"%~nx1\") | clip"
***
does work in a batch file.Code:echo. | set /p = "%~nx1" | clip
I'd appreciate your help.
Last edited by Yaron; 23 Aug 2021 at 05:34.