Path not found in W95 
Author Message
 Path not found in W95

Does anybody knows why this simple script reports "PATH NOT FOUND"
under W95? It's runs perfect under Windows NT.

Dim fso, f

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = FSo.GetFolder("C:\")

wscript.echo f.size

Regards
Pep Mico

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sat, 21 Dec 2002 03:00:00 GMT  
 Path not found in W95
hmmmm... doesn't work on win98 either!

It does work for any folder other than the root...

--
Michael Harris
MVP Scripting

Does anybody knows why this simple script reports "PATH NOT FOUND"
under W95? It's runs perfect under Windows NT.

Dim fso, f

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = FSo.GetFolder("C:\")

wscript.echo f.size

Regards
Pep Mico

Sent via Deja.com http://www.deja.com/
Before you buy.



Sat, 21 Dec 2002 03:00:00 GMT  
 Path not found in W95
Hi,
remove the backslash after C:
and it should work under Win9x
but...the result for c: isn't correct on my
machine...
even

Dim fso, f

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = FSo.GetDrive("C:")

msgbox formatnumber(f.totalsize/1024/1024,0)
msgbox formatnumber(f.freespace/1024/1024,0)
msgbox formatnumber(f.totalsize/1024/1024,0)_
       -formatnumber(f.freespace/1024/1024,0)

returns wrong values, seems like WSH could only
handle drives up to 2GB...

  Thorsten


Quote:

> Does anybody knows why this simple script reports "PATH NOT FOUND"
> under W95? It's runs perfect under Windows NT.

> Dim fso, f

> Set fso = CreateObject("Scripting.FileSystemObject")
> Set f = FSo.GetFolder("C:\")

> wscript.echo f.size

> Regards
> Pep Mico

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 22 Dec 2002 03:00:00 GMT  
 Path not found in W95

Quote:
> returns wrong values, seems like WSH could only
> handle drives up to 2GB...

maybe not WSH but FileSystemObject...
 Thorsten


Sun, 22 Dec 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Long Path Names give Runtime error 76 - Path not found

2. Long Path Names give Runtime error 76 - Path not found

3. VBScript Path Not Found Error when running in IIS

4. GetFolder - Path Not Found

5. GetFolder gives me PATH not found

6. Path not found error??

7. objFolder.Size not finding correct path.

8. Path not found

9. Path Not found on Get Folder

10. Path Not Found on Get Folder Object

11. Error 76 Path not found with folder object

12. VBScript Path Not Found Error when running in IIS

 

 
Powered by phpBB® Forum Software