MOQINFRA
asked on
Copy a file after renaming another file
I need to replace a file named file.xml for all users on the computer remotely
The file is located at this location and needs to be replaced by finenew.xml
C:\Users\abcuser\AppData\L ocal\App01 \file.xml
however i do not want to delete the filr.xml instead need to rename it to fileold.xml and keep it at the same location
So if the file exists the scripts should run and replace it with mu new file and rename the old file
The file is located at this location and needs to be replaced by finenew.xml
C:\Users\abcuser\AppData\L
however i do not want to delete the filr.xml instead need to rename it to fileold.xml and keep it at the same location
So if the file exists the scripts should run and replace it with mu new file and rename the old file
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks , will test it and update you guys
Regards,
Rob.
Open in new window