kwatt562
asked on
vbs to delete and move folder
Does anyone have any code they can share to perform this task
If this this folder exists - %localappdata%\int42, delete it
then copy folder \\servername\int42 to %localappdata%\
then
if this folder exists %localappdata%\int43, delete it
then copy folder \\servername\int43 to %localappdata%\
Hope that's clear and someone has done something similar.
If this this folder exists - %localappdata%\int42, delete it
then copy folder \\servername\int42 to %localappdata%\
then
if this folder exists %localappdata%\int43, delete it
then copy folder \\servername\int43 to %localappdata%\
Hope that's clear and someone has done something similar.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How are you running this? It should be saved as a VBS, and run from a command prompt like:
cscript yourname.vbs
~bp
cscript yourname.vbs
~bp
ASKER
It was an issue with our deployment, tool, apologies, your script worked perfectly. Thanks so much.
ASKER