Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change folder name When Backup
Message
 
 
À
18/08/2004 13:15:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00934182
Message ID:
00934227
Vues:
18
PMFJI, but I'd use DTOS() function:
lcBackUpDir = [\Backup]+DTOS(DATE())
IF !DIRECTORY(lcBackUpDir())
   MKDIR(lcBackUpDir)
ENDIF
....
HTH
>*Year month day
>bakdir = >'\BACKUP\'+ALLTRIM(STR(YEAR(DATE())))+ALLTRIM(STR(MONTH(DATE())))+ALLTRIM(STR(DAY(DATE())))
>IF !directory(bakdir)
>   MKDIR (bakdir)
>ENDIF
>lcfile = 'mytable.dbf'
>newfile = bakdir+'\'+lcfile
>COPY FILE (lcfile) TO (newfile)
>Dear All, I am using these codes when i backup.
>
>If Directory('BACKUP')=.T.
> Set Safety Off
> Close Databases All
> Close Indexes
>
> Copy File boardlevel.cdx To .\backup
>and all............
>
> Set Safety On
> Endif
>Endproc
>
>But i want change folder name with current date.
>and copy all files in current folder date
>like this
>
>Copy File boardlevel.cdx To .\19/08/04
>thanks
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform