Discussion Locked

Capturing and printing files echoed to DOS screen.

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.