Link to home
Start Free TrialLog in
Avatar of Al4ddin2
Al4ddin2

asked on

Classic ASP, adding a check if file exists...

Linked with this thread

how do I add in a check to make sure the XML file exists? If it doesn't then just use a default image in the same way?

Thanks
Avatar of Al4ddin2
Al4ddin2

ASKER

Ideally done here...

filename=Server.MapPath "/files/items.xml"

So if no path is set then it uses a default value?!

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial