darkpaws.com

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 - 27th November 2006

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
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
Download tagV2.3.exe
Results:
  • fredYYYYMMDDhhmm.zip
  • fred-YYYYMMDDhhmm.zip
  • fred_YYYYMMDDhhmm.zip
  • fred~YYYYMMDDhhmm.zip
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).
  • This program has only been tested on Windows 2000/XP/2003, it should work on win 98 but not 100% sure of the long filename support.

Hide.exe - 12th November 2006

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

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:

  • 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

27th November 2006.
counter

Comments· Credits