Solved

File not found, Not...

Posted on 2006-06-19
12
738 Views
Last Modified: 2008-01-16
I am having a problem with a site at my ISP.

I issue this command:
oFSO.MoveFile "c:\sites\Single44\bob\database\" & Right(File.Path,Len(File.Path) - InStrRev(File.Path,"\")),"c:\sites\Single44\bob\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\Single44\bob\webroot\waiting\" & 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\Single44\bob\webroot\waiting\" & comp_id & ".ae")
I get:
c:\sites\Single44\bob\webroot\waiting\221.ae

The file is there!

Any idea why I am getting the error?
0
Comment
Question by:lpenrod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 22

Expert Comment

by:WMIF
ID: 16939446
lets try another fso function:

response.write oFSO.FileExists("c:\sites\Single44\bob\webroot\waiting\" & comp_id & ".ae")


does that show the file being there?
0
 
LVL 25

Expert Comment

by:clockwatcher
ID: 16939998
Are you sure composition_id = comp_id?
0
 
LVL 3

Author Comment

by:lpenrod
ID: 16943226
The response is "False".

clockwatcher: composition_id is equal to comp_id.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:dxz2
ID: 16943275
try to see if  composition_id or comp_id are not empty, to do so write:

response.write "c:\sites\Single44\bob\webroot\waiting\" & comp_id & ".ae"

see what is the result
0
 
LVL 3

Author Comment

by:lpenrod
ID: 16943375
c:\sites\Single44\bob\webroot\waiting\221.ae
0
 
LVL 6

Expert Comment

by:dxz2
ID: 16943528
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\bob\webroot\waiting\" & comp_id & ".ae")

if result was false then try to navigate manually to see if the file is there
0
 
LVL 22

Accepted Solution

by:
WMIF earned 500 total points
ID: 16944250
lets do another check for that directory that you are trying to get into.

response.write oFSO.FolderExists("c:\sites\Single44\bob\webroot\waiting\")



then, lets try to enumerate the files that the fso can see in that directory.

oFSO.getfolder("c:\sites\Single44\bob\webroot\waiting\")
for each ofile in ofso.files
  response.write ofile.name
next


let me know what you get for these.
0
 
LVL 3

Author Comment

by:lpenrod
ID: 16947307
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
0
 
LVL 3

Author Comment

by:lpenrod
ID: 16947474
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.
0
 
LVL 22

Expert Comment

by:WMIF
ID: 16948669
is your problem solved then?
0
 
LVL 3

Author Comment

by:lpenrod
ID: 16951413
Yes it is.  
0
 
LVL 22

Expert Comment

by:WMIF
ID: 16956053
then please accept an answer that helped, or request closure of this question with community support.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get hold of longitude and latitude in iframe string 11 52
Syntax for query to update table 2 42
2012 SQL to JSON Select 5 31
How to post data to an API using ASP Classic 3 31
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question