Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying hidden files
Message
 
 
To
07/03/2001 18:11:05
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482939
Message ID:
00482958
Views:
8
Use Scripting.FileSystemObject to copy files
---------------------------

ofso = CreateObject("Scripting.FileSystemObject")

Local ;
cFileToCopy, ;
cDirToCopyFrom

m.cDirToCopyFrom = "C:\MYDIR\"
m.cDirToCopyTo = "C:\YOURDIR\"
m.cFileToCopy = SYS(2000, cDirToCopyFrom+'*.*')


DO WHILE !EMPTY(m.cDirToCopyFrom)
oFileHandler = ofso.GetFile(m.cDirToCopyFrom+m.cFileToCopy)
oFileHandler.Copy(m.cDirToCopyTo+m.cFileToCopy)
ENDDO

oFileHandler = .F.
ofso = .F.

-----------
Arto
Previous
Reply
Map
View

Click here to load this message in the networking platform