Evening All I am trying to create a robocopy script that prompts for the parameters to use, for example instead of hard coding the following: -
@Echo off
robocopy "C:\Users" "T:\Backup" /MIR /XA:SH /XD AppData /XJD /R:5 /W:8 /V /ETA /LOG:Backup.log /TEE
PauseI would like to make a script that asks for the source & destination but still adds the above switches. Is this possible?
Kind Regards
Tor Fey
@Echo off set /P source=Enter Source^> set /P target=Enter Destination^> robocopy "%source%" "%target%" /MIR /XA:SH /XD AppData /XJD /R:5 /W:8 /V /ETA /LOG:Backup.log /TEE Pause
Greetings IVO Many thanks for your help, you are a life saver.
Kind Regards
Tor Fey
| « Delete last line in txt f... | windows 3.x memory » |