I am havingin trouble getting the Script to recognize %USERPROFILE%. I have the following Code, and when it runs It doesn't give me any error, but it doesn't create a Folder and it doesn't copy the files over. Can someone please take a look at my code and see where I am going wrong?
Set fso = wscript.createobject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
strUserProfile = objShell.ExpandEnvironmentStrings("%USERPROFILE%")
lotusNotes8FolderPath = strUserProfile & "\local settings\application data\lotus\notes\"
fso.copyfolder lotusNotes8FolderPath, folder.path & "\Notes8ProfileData", True