I have a small batch script to move files from shared to location to my E-drive. The script below moves the file from the shared location and deletes it from the shared location.
@echo off
cls
NET USE Q: \\lMC-Wheat-tick\PQ120R2A3 /USER:SAPQMPQ-LOCAL\USername "Password"
move "Q:\*.csv" "E:\CSV Files\CSV\CSVSource\"
NET USE Q: /DELETE /Y
echo on
I want to modify this code not to delete the file in shared location and pick only the files from the shared location that are not in my E-Drive ("E:\CSV Files\CSV\CSVSource\").
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire