New To Scripting
Hi,
I am new to Vbscript. And I tried my first program and got error in that also.
I jst thought to write a small program that will give me the size of "Documents and Settings" folder. But when I run this program I get error "Path not found". Initailally I thought that it might be because of spaces in the name of folder. But tht's not the case because I tried to run the same code with other folders having spaces in their name and program worked fine. But I am getting error when I run it for "Documents and Settings". So I am really curious to know, wats the problem with "Documents and Settings" folder.
Set fso = createobject("Scripting.FilesystemObject")
Set obj = fso.getfolder("C:\Documents and Settings")
set subfld = obj.subfolders
wscript.echo obj.size/(1024*1024) 'subfld.count
|