Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem instantiating WSH Folder object
Message
 
 
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00773252
Message ID:
00773296
Vues:
9
Martin,

I think, I had similar problem once, when I tried to create my own code to display full C drive content.

Here is nice code, that works, and may be of some help.
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=118



>I'm having a problem that's driing me nuts. I tracked a nasty bug on an ASP
page down to the GetFolder method of WSH FileSystemObject.
>
>I can instantiate FSO perfectly, but when I use GetFolder to instantiate a folder object, it hangs, so the page never finish loading, and IIS needs to be restarted in order to serve anything else.
>
>Look at some sample code:
>
>This works:
>
>Dim oFSO, loFolder
>Set oFSO=CreateObject("Scripting.FileSystemObject")
>
>
>I can print: oFSO.Drives.Count
>
>But if I do:
>
>Set loFolder=oFSO.GetFolder(lcPath)
>
>
>This hangs further execution. I know that this code WORKS in other environments.
>
>I'm running IIS 5.0, W2K Pro SP3.
>
>Any idea?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform