I'm trying to use a VB script to automatically create a default folder structure for projects. Users do not have permissions to create folders in the destination, only files, because I want them to adhere to the standard folder structure. So I've been trying to use this script to elevate the permissions for the robocopy process to copy the source folders to the destination, but for the life of me I cannot figure out the nested quotes to pass the full command. What happens now when I run it is I see the help for runas flash by. Can someone help me sort out these quotes?
Set WshShell = WScript.CreateObject("WScript.Shell")
source = "\\<servername>\support$\ProjectSetup\DO_NOT_DELETE_Folder_Creates_New_Folder "
robocopy = "c:\windows\system32\robocopy.exe "
WshShell.Run "cmd /c runas /profile /user:<domain>\<username>" & robocopy & source & path &" /E /COPYALL /SEC"