473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

MoveFile problem

Hello!
I'm using the MoveFile method for moving files between 2 servers , one running my asp script and the other running my database.My problem is that I'm getting the error:

Microsoft VBScript runtime error '800a0035'

File not found

The command for moving files:
fs.MoveFile Server.MapPath("upload/tmb2.xls"), "\\tmav035a\Test\AssetDB_test\tmb2.xls"

the first location is a file on the asp server.
Could somebody tell me what's the cause of the errors?

Thanks!
Aug 28 '07 #1
4 1366
jhardman
3,406 Expert 2GB
I would guess that the asp server can't find the location on the other server. There are a lot of things that could prevent that, I don't even know where to send you to fix it, but it occurs to me that both paths are supposed to start with a drive letter. The mapPath function provides this for the first path, but it doesn't look like the second one does. And since it is on a different server, I don't even know how you could make that work. Can you not put a script on the other server?

Jared
Aug 29 '07 #2
markrawlingson
346 Expert 100+
I'd tend to agree, I didn't think you could supply a virtual path with the MoveFile method, I thought it had to be a physical path. Though I could be wrong, I researched a little on google and a few items I pulled up suggest that you can use a virtual path. Even so, the first path is upload/tmb2.xls - if nothing else that's where your problem is.. I'm fairly certain that has to be a full path. C:/devdirectory/upload/tmb2.xls

If you still get the problem, I would try just moving the file around on your 1 server first and see if that works.. remove the virtual directory as the destination and replace it with a physical path on the same computer, different drive or something.. if that doesn't work then you know that's not the problem obviously!

If this is the case, Another option you may have is to network the servers together if at all possible. For instance, if networked together - the virtual server you're referencing might be drive H: - so you could do something like :

fs.MoveFile Server.MapPath("C:/upload/tmb2.xls"), "H:/Htmav035a/Test/AssetDB_test/tmb2.xls"
Aug 30 '07 #3
I would guess that the asp server can't find the location on the other server. There are a lot of things that could prevent that, I don't even know where to send you to fix it, but it occurs to me that both paths are supposed to start with a drive letter. The mapPath function provides this for the first path, but it doesn't look like the second one does. And since it is on a different server, I don't even know how you could make that work. Can you not put a script on the other server?

Jared
I can't place the database and the asp script on the same server...:(
Sep 17 '07 #4
I'd tend to agree, I didn't think you could supply a virtual path with the MoveFile method, I thought it had to be a physical path. Though I could be wrong, I researched a little on google and a few items I pulled up suggest that you can use a virtual path. Even so, the first path is upload/tmb2.xls - if nothing else that's where your problem is.. I'm fairly certain that has to be a full path. C:/devdirectory/upload/tmb2.xls

If you still get the problem, I would try just moving the file around on your 1 server first and see if that works.. remove the virtual directory as the destination and replace it with a physical path on the same computer, different drive or something.. if that doesn't work then you know that's not the problem obviously!

If this is the case, Another option you may have is to network the servers together if at all possible. For instance, if networked together - the virtual server you're referencing might be drive H: - so you could do something like :

fs.MoveFile Server.MapPath("C:/upload/tmb2.xls"), "H:/Htmav035a/Test/AssetDB_test/tmb2.xls"
I tried the MoveFile method with both of the files situated on the same server.It worked...the servers are on the same network..
Sep 17 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Patrice | last post by:
Hi, I want to move images from a folder to specific subfolders. The script below generates the following error: a.. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required:'' <%...
117
by: Peter Olcott | last post by:
www.halting-problem.com
1
by: Shelley | last post by:
Hi Everyone, Does anyone know what object it is in the MoveFile Method object.MoveFile source, destination in access? Any help will be highly appreciated!
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: RSH | last post by:
I have an ASP page that needs to move a file from one directory to another. The code is quite simple but I can't seem to get it to work. I keep getting a "Download Error: Procedure call or...
2
by: RSH | last post by:
I have an ASP page that needs to move a file from one directory to another. The code is quite simple but I can't seem to get it to work. I keep getting a "Download Error: Procedure call or...
6
by: Mat N | last post by:
Hello access friends, (Originally posted on access.formsprogramming which I think was the wrong place) I'm precalculating a bunch of data for my clients as per a profile I have for each of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.