I have created a vbscript which runs the robocopy command and requires a command line argument containing the folders to exclude from the robocopy job to it however at present its not working.
If I was running robocopy from the command line I would type in the folders to exclude in the format shown below.
robocopy /XD "Program Files" "Windows" "Recycler"
The problem I have is passing the "program files" "windows" "recycler" bit all as one single argument/variable.
My knowledge of vbscript is very limited and I have spent hours searching the web for answer without any success. Any help is very much appreciated.
Thanks in advnace.