Configuring Windows Explorer - Context Sensitive Menus
Great way to run a Batch file on a particular directory.
Eg. Say you want to run a batch file after right-clicking on a Folder, so it is performed on that folder.
- Go to
Explorer --> Tools --> Folder Options --> File Types
- Select the "File Folder" file type
- Select
Advanced --> New...
- Action = Moved to Fixed
- Application to use =
cmd.exe /c cd "%1" | C:\fixed_dir.bat
This runs fixed_dir.bat file in the currently selected folder and exits the DOS window straight away.
In this case fixed_dir.bat contains:
mkdir Fixed
move *.jpg Fixed
No comments:
Post a Comment