Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change folder name When Backup
Message
From
18/08/2004 15:17:15
 
 
To
18/08/2004 13:15:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00934182
Message ID:
00934227
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform