Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to File System Object
Message
From
09/11/2003 13:12:04
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Alternative to File System Object
Miscellaneous
Thread ID:
00848092
Message ID:
00848092
Views:
84
I am looking for an alternative of this ASP code which would make it run ok either inside an ASP page or inside an ASPX page.
Set loFSO=CreateObject("Scripting.FileSystemObject")
lcFile=Server.MapPath(lcFileToLookFor)
If Not loFSO.FileExists(lcFile) Then
   lnExistFrench=0
End If
The problem is when being run inside an ASPX page, the Set of the first line has to be removed. So, I need some ASP code that would do the equivalent which would fit in both pages.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform