Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_database_setup thread: Problem on copying file from remoteURGENT


Message #1 by "Patrick Wong" <patrick@r...> on Wed, 15 Jan 2003 10:11:13 +0800
Dear Sir,
I am trying to access to a remote server to copy a file to my local pc, can i know the correct code?

In the beginning of the code, i use this

conn.open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=d:\webs\school.com\college.mdb"

and then use SQL to get a table from college.mdb 


Now i want to copy the file college.mdb to my C:\WINDOWS\Desktop\

Part of my code is like this: what is the correct code?
=====================================
Set FSO = CreateObject("Scripting.FileSystemObject")

Call FSO.copyfile("d:\webs\school.com\college.mdb", C:\WINDOWS\Desktop\")

=================================

i know the code above in blue color is wrong, what is the correct way to specify the path to a remote server?


hope u can help, thanks

cheers,
patrick


  Return to Index