I have a windows 2008 server, and I want make a LogonOn script that will copy a folder(with contents) from "AppData(Roaming)" to AppData Local. I tried this code but it won't work.

this is the code:

Dim objShell, strDesktop, objFSO

Set objShell = CreateObject("Wscript.Shell")
strDesktop = objShell.SpecialFolders("AppData\Local\Folder1")

Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "\\ZEROONE\Profiles\%USERNAME%\AppData\Roaming\Folder1", strDesktop
link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.