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!

FSO Copy Error??

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
I am trying to copy a file from one folder to another. However when I try to do this I get an error on the line that is attempting to copy that says
Object required: 'D:\ .
Code:
set fso = Server.CreateObject("Scripting.FileSystemObject")
MyFile = fso.GetFile "D:\[URL unfurl="true"]wwwroot\Intranet\DRS\DrawingsPendingApproval\"[/URL] & drawNo & ".dwg") 
[b]MyFile.Copy ("D:\wwwroot\Vendor\siteSurvey\")[/b]

I have triple checked the path that I am trying to copy to and it works. The GetFile code works as well. I also checked the permissions and they seem to be set correctly as well.

Any ideas - this is really starting to drive me crazy!!

Thanks guys
 
Try FSO.CopyFile("C:\source file.txt", "C:\Destination File.txt")


Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top