Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the Scripting.FileSystemObject
Message
 
À
21/05/2001 11:14:23
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00509474
Message ID:
00509492
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Using the Scripting.FileSystemObject object, when I want to check for the existance of a file, how can I force it to start from the current directory?
>
>Basically, I would have something like this:
>
>
>Dim oFSO
>Set oFSO=CreateObject("Scripting.FileSystemObject")
>If oFSO.FileExists("MyFile.asp") Then
>   Do something
>End If
>
I don't think you can. The .dll defaults to the directory it's installed in. You can use {server.MapPath("MyFile.asp")} to return the path info.
Dim oFSO
Set oFSO=CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists(server.MapPath("MyFile.asp")) Then
   Do something
End If
Michael McLain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform