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?