You can write a batch file to test for the file being there and then print it if transfer is complete. This will test every 5 minutes for file existence and then every 30 seconds to see if the copy completed.
:filetest
if exist c:\folder\newfile.txt goto filedone
sleep 300
goto filetest
:filedone
REM This will test if file transfer completed
rename c:\folder\newfile.txt c:\folder\newfile.txt
if errorlevel 0 goto printit
sleep 30
goto filedone
:printit
copy newfile.txt \\computername\printername
Main Topics
Browse All Topics





by: SteveyStevePosted on 2003-01-31 at 09:07:24ID: 7854504
Hi rohanB,
I don't think there are any "Configurable" ways to do this, so I would write an application to perform this action (in VB or delphi or whatever).
The outline of the application would be something like this:
Poll a given directory every few seconds or so to spot new files.
If a new file appears, send it to the printer and archive or delete it.
repeat process.
Ok, it is a little simpistic, and these things never are that simple, but I hope this helps anyways.
SteveySteve