thanks, Yzöwl!
setfiletime in nircmd (great utility) apparently parses by spaces, so as long as there are no spaces in the filenames, and only dates with no times are used, quotes aren't needed. If time is left blank, it is set to 00h00m00s.
thus, in 2000 using full path+filename (no spaces allowed) the following without quotes works OK
CODE
rem the next line works in both w2ksp4 and 98se
nircmd setfiletime c:\PathToTargetFile\testfile.txt 01-02-2003 04-05-2006
pause
but add the variable %TPF% and with or without quotes, something is jamming in 2000, but w98se runs OK ...
CODE
set TPC=C:\PathToTargetFile
rem the next line works in 98se, but not in w2
nircmd setfiletime %TPC%\testfile.txt 01-02-2003 04-05-2006
rem the next line works in 2k, but not in 98se
nircmd setfiletime "%TPC%\testfile.txt" "01-02-2003 00:00:00" "04-05-2006 00:00:00"
Incidentally, in 98se, when the variable %TPF% is placed inside quote marks, it does't get recognized as a variable. In 2000 it does!
And in 98se putting the %TPF% outside the quotes doesn't concatonate with a string that follows, when it is placed in quotes. thus the first line above runs OK in 98se, the second command doesn't.
The same variable inside a quoted string in 2000, and voila ... it is recognized and contaconates! Very nice for when filenames have spaces in them!
back to track ... any idea why the variable doesn't work ... on my system anyway ... maybe it is the way the parameters are passed from NT to nircmd?
It's no big deal ... the core product updates are in their own subdirs, so this only applies to 20 or so files. I keep all my patches in hot and archive subdirs, so I can run those locally. just curious why a variable would get passed one way in 98se, but in another in 2000.