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:
and the execution script is:
copy %TMP%\Print??????.??.pdf C:\shared\%USERNAME%_printer\Print??????.pdf