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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for accessing files through a program.

Status
Not open for further replies.

Tigerman

Programmer
May 15, 2001
18
US
What is the code/function that can be used to tell a program to access certain file(s) on the harddrive? I want to write a program that will restore files to the harddrive of our office computers that have been taken off and put on a network drive. Thanks!
 

Check out the FileSystemObject

e.g.
---------------------------------------------------------
Dim fso As New FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "c:\mydocuments\*\R1???97.xls", "c:\tempfolder"
---------------------------------------------------------


Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top