Programs © 1999-2019 Guillaume Dargaud.
Free use and distribution.
Last updated on 2018/10/17
"When Roman engineers built a bridge, they had to stand under it while the first legion marched across. If programmers today worked under similar ground rules, they might well find themselves getting much more interested in Ada !" — Robert Dewar, President Ada Core Technologies.
FileNbExtend.exe is a small utility that will rename files with number in their names by adding trailing zeros. For instance LI12.DAT to LI000012.DAT, ABC1.TXT to ABC00001.TXT... This allow you to sort them alphabetically.
This is a command line program (will work in DOS, Windows, WinNT, Win2000...), but you can drag and drop files onto its icon in windows. The converted filenames are 8.3, so obviously the original names must be 8.3 too. It will ignore longer names. You can use pipes to redirect the output, like >dest.txt.
Note: you cannot use wildcards in the command line, but you can use a DOS command like: "FOR %I IN (file*.ext) DO FileNbExtend %I".
Example of use:
FileNbExtend Quote0.js Quote1.js Quote10.js Quote100.js Quote1000.js
Quote0.js renamed to Quote000.js
Quote1.js renamed to Quote001.js
Quote10.js renamed to Quote010.js
Quote1000.js is not a 8.3 filename.
RollLog.exe is another command line utility that copies or moves a file and add a timestamp to the filename. I use it mainly from the Windows Task Scheduler to save a backup of log files.
Command line syntax: RollLog.exe Y|M|D|H|N|S M|C File [DestDir]
Example: RollLog.exe D C C:\Inetpub\cgi-bin\counter.dat "C:\Documents and Settings\username\My Documents\Backups\WebPageStuff\AccessLog\Daily"
Will do a copy of the file counter.dat as counter_020117.dat. Note that the timestamp is added to the filename, not the extension name.
So how does one use this program ?
You call it from the task scheduler: [Start][Settings][Control Panel][Scheduled Tasks][Add Scheduled Task].
Select RollLog.exe as the program to run and then change its properties ([Run] line) to have the full command line instuction, for instance: "C:\Documents and Settings\username\My Documents\Work\StrfTime\RollLog.exe" D C C:\Inetpub\cgi-bin\counter.dat "R:\RemoteLocationThatHackersCantGet\Backups\WebPageStuff\AccessLog\Daily". Run it daily at 00:00:01 in the morning and it will create a daily backup for you...
ImDim.exe is command line utility that will give you various image properties, like width, height, filesize and more. You can use it to generate statistics for your images. Works only on JPEG and PNG files.
Command line syntax: ImDim "Format" FileList
Example 1: ImDim "Width:%w Height:%h %% Pixels:%p FileSize:%b/%kKb/%mMb ImgSize:%B/%KKb/%MMb %a %f %x %y #Colors:%c Bits:%t Format:%o" "C:\Photo\300\*.*" \\remote\Share\Adelie00?.png
Example 2: ImDim "<IMG SRC=""%f.%x"" ALT=""Size:%kKb"" WIDTH=%w HEIGHT=%h><BR>" *.jpg > part.html
This freeware written with LabWindows/CVI.