Capturing and printing files echoed to DOS screen. - TechRepublic
General discussion
May 30, 2008 at 02:11 PM
bags4grlz

Capturing and printing files echoed to DOS screen.

by bags4grlz . Updated 18 years, 1 month ago

I’m writing a DOS batch file that copies dated files from a network drive, then prints the files. So far, I’ve come up with the following:

echo COPY NETBACKUP REPORTING FILE TO C DRIVE
c:\Putty\pscp -l %1 servername:/dir1/dir2/*%2* c:\dir3
print c:\dir3\Name of file

I would like to automatically capture the file name in the print command. Can someone help me?

This discussion is locked

All Comments