Archive for February, 2007

UnixKit-tiny

UnixKit for Windows is a toolkit of Unixlike programs for Microsoft Windows. Unlike CygWin, it does not require installation. In fact, it leaves absolutely no traces on the host machine when you’re done using it.The -tiny branch presently includes:arc arj bash bunzip2 bzip2 bzip2recover cat chmod cksum cp csplit cut dd df diff du file [...]

Time & Date stamp for batch files

This has been driving me crazy - how to get a decent Time & Date stamp in a batch file. After much Googling and experimenting I came up with this:
SET TimeStamp=
for /f “tokens=1-4 delims=/ ” %%i in (”%date%”) do set datestr=%%l%%j%%k
for /f “tokens=1-4 delims=.: ” %%i in (”%time%”) do set timestr=%%i%%j%%k%%l
SET TimeStamp=%datestr%%timestr%
It sets the environment [...]