shell - How to get directory path to a batch file when right click in inside folder background? -


file.reg

windows registry editor version 5.00  [hkey_classes_root\directory\shell\xfiles] @="文件命名操作(&a)" "noworkingdirectory"="" [hkey_classes_root\directory\shell\xfiles\command] @="cmd.exe /c c:\\bat\\file.bat %1 \"%v\""  [hkey_classes_root\directory\background\shell] [hkey_classes_root\directory\background\shell\xfiles] @="文件命名操作(&a)" [hkey_classes_root\directory\background\shell\xfiles\command] @="cmd.exe /c c:\\bat\\file-bg.bat %cd% \"%v\"" 

file.bat

@echo off set handledir=%1 if "%handledir%"=="" exit /b echo %handledir% rem ... 

file-bg.bat

@echo off set handledir=%cd% if "%handledir%"=="" exit /b echo %handledir% rem ... 

%1,
directory\shell , directory path on directory icon,

%cd%,
directory\background, directory path @ inside folder background.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -