Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the Scripting.FileSystemObject
Message
 
 
To
21/05/2001 11:14:23
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00509474
Message ID:
00509492
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform