
objFolder.Size not finding correct path.
Thank you in advance for your help.
When I run a simple script to determine the size of a folder, it works
perfectly, but when I incorporate it into my project is can't find the
path. I have printed the path to screen and it's 100% correct.
Below are examples of what I am talking about.
1. This one works.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Inetpub\wwwlogs\w3SVC64")
2. This one does not.
Set objFSO2 = CreateObject("Scripting.FileSystemObject")
locallogs = "C:\Inetpub\wwwlogs\w3SVC"
LogPathVr = locallogs & IISObjectIP.name
wscript.echo LogPathVr
'----- It works to this point and displays the correct path.
'----- The following line kills it.
Set objsitemb = objFSO2.GetFolder(LogPathVr)
Any ideas?
Thanks.
JJ