This gist allows you to add a batch script to the Windows context menu (right click menu). This batch file is just a dummy-file. It doesn't do anything other than list all the files in a folder, so don't get nervous 😉.
- Add the batch file to
C:\Scripts\
- Run Add Process all files in folder to the context menu.reg
- Right click on a folder to see the new option "Process all files in folder"
- Run the script to process all files in folder
- To remove the script just delete the batch file and run "Remove Process all files in folder from the context menu.reg"
Your very simple script helped me to create mine to add a "Catalog with Cathy" context menu.
The cathycmd utility requires a text file containing the path of the folder to process.
Cathy.bat:
@echo off
cd %1
chcp 1252>nul
for %%# in (%1) do (echo #DEV %%~# > D:\Documents\Cathy\Cathy.conf
D:\Documents\Cathy\CathyCmd.exe -f D:\Documents\Cathy\Cathy.conf
)
Pause
Copypath.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\CopyPath]
@="Cataloguer avec Cathy"
"Icon"=""C:\Program Files (x86)\rOva\Cathy.exe""
[HKEY_CLASSES_ROOT\Directory\shell\CopyPath\command]
@=""D:\Documents\Cathy\Cathy.bat" "%1""
THANK YOU !