I've this little piece of code, that run perfectly when i type "cscript.exe MyScript.vbs" from command prompt, but as soon as i run it from the task manager, FolderExists always return False.
Set wFSO = CreateObject("Scripting.FileSystemObject")
If Not wFSO.FolderExists(wSourceFolder & "Compressed") Then
Set oFile = wFSO.CreateFolder(wSourceFolder & "Compressed")
wSourceFolder is a mapped drive (U:\ pointing to another computer).