Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.CreateObject("Scripting.FileSystemObject") file exist doesn't work

Status
Not open for further replies.

cat5ives

Programmer
Sep 13, 2011
11
US
Hi,

I have classic asp code using Server.CreateObject("Scripting.FileSystemObject") to check if file exist. The code is working fine but when we try to move to new server which has iis7 (the current one using iis5.1) then the method checking for fileExist always return false.

if fs.FileExists("C:\Inetpub\ + docname) = True then
docfound = "yes"
else
docfound = "no"
end if

For sure the file is in C:\Inetpub\ Folder temp is a shared folder.

Thanks in advance.
 
But is 'temp' part of the site that the script is running on OR does the user that the site is running as have full access to it


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Thanks for replying, ChrisHirst.
Found problem, need to give permission to Everyone on folder 'temp'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top