PDA

View Full Version : retrieval


vinodh
09-28-2004, 03:57 AM
Dim cp
set cp=Server.CreateObject("Scripting.FileSystemObject")
cp.CopyFile "c:\*.mdb","c:\inetpub\wwwroot\vonline"
set cp=nothing
-----------------------------------------------------------
Remarks : it copys any mdb file C:\ and paste it to c:\inetpub\wwwroot\vonline

1st problem: i tried specifing the folder name but it does not work e.g cp.CopyFile "c:\freezer.mdb" . i have to put c:\*.mdb
in order to work.

2nd problem: i tried to copy a file from another computer but not working e.g cp.CopyFile "120.10.140.7\c:\*.mdb

*i am very sure that my location is correct....

A1ien51
09-28-2004, 04:23 AM
you most likely need to set up IIS to do this if you are using a windows machine.

Eric