lpenrod
asked on
File not found, Not...
I am having a problem with a site at my ISP.
I issue this command:
oFSO.MoveFile "c:\sites\Single44\bob\dat abase\" & Right(File.Path,Len(File.P ath) - InStrRev(File.Path,"\"))," c:\sites\S ingle44\bo b\webroot\ waiting\" & Composition_ID & ".ae"
and the file moves just fine.
I FTP into the site and sure enough, the file is there.
I issue this command:
Set FileSize = oFSO.GetFile("c:\sites\Sin gle44\bob\ webroot\wa iting\" & comp_id & ".ae")
and I get this error:
The above line results in: Microsoft VBScript runtime (0x800A0035)
File not found
/aeprojectdetail.asp, line 112
I issue this command:
Response.Write("c:\sites\S ingle44\bo b\webroot\ waiting\" & comp_id & ".ae")
I get:
c:\sites\Single44\bob\webr oot\waitin g\221.ae
The file is there!
Any idea why I am getting the error?
I issue this command:
oFSO.MoveFile "c:\sites\Single44\bob\dat
and the file moves just fine.
I FTP into the site and sure enough, the file is there.
I issue this command:
Set FileSize = oFSO.GetFile("c:\sites\Sin
and I get this error:
The above line results in: Microsoft VBScript runtime (0x800A0035)
File not found
/aeprojectdetail.asp, line 112
I issue this command:
Response.Write("c:\sites\S
I get:
c:\sites\Single44\bob\webr
The file is there!
Any idea why I am getting the error?
Are you sure composition_id = comp_id?
ASKER
The response is "False".
clockwatcher: composition_id is equal to comp_id.
clockwatcher: composition_id is equal to comp_id.
try to see if composition_id or comp_id are not empty, to do so write:
response.write "c:\sites\Single44\bob\web root\waiti ng\" & comp_id & ".ae"
see what is the result
response.write "c:\sites\Single44\bob\web
see what is the result
ASKER
c:\sites\Single44\bob\webr oot\waitin g\221.ae
oh I am sorry I didn't see that you wrote this before.. so I suggest to do as clockwatcher said using FileExists function to see if the system can find the file or not...
so just do
response.write oFSO.FileExists("c:\sites\ Single44\b ob\webroot \waiting\" & comp_id & ".ae")
if result was false then try to navigate manually to see if the file is there
so just do
response.write oFSO.FileExists("c:\sites\
if result was false then try to navigate manually to see if the file is there
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is the result:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'files'
/admin/aeprojectdetail.asp , line 116
Line 116 = for each ofile in ofso.files
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'files'
/admin/aeprojectdetail.asp
Line 116 = for each ofile in ofso.files
ASKER
I am an idiot. There was a link that had an absolute path in it and it pointed to localhost.
I didn't catch it.
Sorry, and thanks for your help.
I didn't catch it.
Sorry, and thanks for your help.
is your problem solved then?
ASKER
Yes it is.
then please accept an answer that helped, or request closure of this question with community support.
response.write oFSO.FileExists("c:\sites\
does that show the file being there?