the filesystem object in the Windows scripting shell for this. Then it's a not too difficult VBScript or Javascript in stead of a basic batchfile.
Kees
I have a program which uses an OUTPUT variable to send data to a printer. I need to instead have it just create the pdf files for each print the user makes and put them in a shared folder. The filenames I am makeing will be the word Print followed by a timestamp of when each print was made. For example Print102705.pdf which would be if a user printed the file at 10:27.05 am. The windows time feature adds the hundredths of a second which I strip out via the copying from their temp directory to the shared directory. What I cant figure out though is if they print before 10 in the morning....the files created will be Print 92705.pdf. It doesnt have a leading zero...it just adds a space. I would like any "before 10 am" files printed to show up with the zero and I couldnt figure out how to get the timestamping done.
the setup is as follows:
set TIMESTAMP=%TIME::=%
set OUTPUT=%TMP%\Print%TIMESTAMP%.pdf
and the execution script is:
mkdir C:\shared\%USERNAME%_printer
copy %TMP%\Print??????.??.pdf C:\shared\%USERNAME%_printer\Print??????.pdf
del %TMP%\*.pdf

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic