I have written a couple of quick utilities that I find useful in my day to day batch processing. If you like them or find faults please drop me a line and I will try to fix them.
Tag.exe V2 - 12th June 2019
Tag is just a quick way of tagging a file or folder name with a date and time.
Version 2 changes
- Will tag folders as well as files.
- This version will now do files with no extentions.
- Various bug fixes
- Various bug fixes
|
Usage:
- tag fred.zip
- tag.exe c:\batch\fred.zip
- tag "c:\program files\test\fred.zip"
|
Results:
- fredYYYYMMDDhhmm.zip
- fredYYYYMMDDhhmm.zip
- fredYYYYMMDDhhmm.zip
|
There is a seperator switch as well.
add the -sX switch where the X is any valid charactor that can be used in file or folder names.
|
Usage:
- tag fred.zip
- tag -s- fred.zip
- tag -s_ fred.zip
- tag -s~ fred.zip
|
Results:
- fredYYYYMMDDhhmm.zip
- fred-YYYYMMDDhhmm.zip
- fred_YYYYMMDDhhmm.zip
- fred~YYYYMMDDhhmm.zip
|
Download tagV2.3.exe Use this version if you want to run on old Windows OS's (XP SP3 and earlier).
Download tagV2.4.exe Use this version if you want to run on Windows OS's post XP SP3.
|
Note: I was having problems with browser cache not downloading the latest version so the files will now need to be renamed after downloading. Rename the file to "tag.exe" otherwise the application wont work.
Known Limitations:
- If there are multiple "." then the tag will be put just before the final extention (ie test1.hello.zip will become test1.hello200604251300.zip).
- The folder time tag is the current system time that the tag program is run and not the creation date of the folder.
- The file tag time is the last modification time (this is creation time when working with new files).
- Version 2.3 program has only been tested on Windows 2000/XP/2003/2008/Win7/2008R2, it should work on win 98 but not 100% sure of the long filename support.
- Version 2.4 program has only been tested on Windows 2008/Win7/2008R2/Win10, it should work on all the later OS's, but not earlier.
Hide.exe - 12th June 2019
Hide is just a quick way of hiding running batch files so that end uses cant see whats happening or they cant stop what needs to be done.
Usage:
- hide fred.cmd
- hide.exe c:\batch\fred.cmd
- hide "c:\program files\test\fred.bat"
Download hideV1.1.exe Use this version if you want to run on old Windows OS's (XP SP3 and earlier).
Download hideV1.2.exe Use this version if you want to run on Windows OS's post XP SP3.
Note: I was having problems with browser cache not downloading the latest version so the files will now need to be renamed after downloading. Rename the file to "hide.exe" otherwise the application wont work.
Known Limitations:
- Version 1.1 program has only been tested on Windows 2000/XP/2003/2008/Win7/2008R2, it should work on win 98 but not 100% sure of the long filename support.
- Version 1.2 program has only been tested on Windows 2008/Win7/2008R2/Win10, it should work on all the later OS's but not earlier.
- Due to the way the files are compiled (compressed), the application that is calling your batch file is actually running somewhere in your "C:\Documents and Settings\%userid%\Local Settings\Temp" directory (its random so as to not duplicate itself).
- To run the batch below it will run in the temp directory and not in the directory that the app was called.
echo test> test.txt
copy test.txt test.123
md test
- Change the paths to full paths as in either example below and all should be fine.
c:
cd\temp
echo test> test.txt
copy test.txt test.123
md test
- Or .....
echo test> c:\temp\test.txt
copy c:\temp\test.txt c:\temp\test.123
md c:\temp\test
12th June 2019.
|