Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 29th, 2007, 03:30 AM
Registered User
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default MoveFile help

Hi!
I have 2 servers.One server runs my asp scripts and the other is used also for a database(in MS SQL).I have a component for importing data from excel to sql.All I have left to do is to move file from the server running the asp script to the other server.I chose to use the MoveFile method.This component is part of a bigger application,that uses the windows authentication.

I keep getting the following error:

Microsoft VBScript runtime error '800a0035'

File not found

The line that generates this is:

fs.MoveFile Server.MapPath("upload/tmb2.xls"), "\\tmav035a\Test\AssetDB_test\tmb22.xls"

Could you tell me what's causing this error?
I tried this method with the destination file situated on the same server and it works...










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.