Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying hidden files
Message
 
À
07/03/2001 18:11:05
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00482939
Message ID:
00482958
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform