AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages! You are not logged in. Login here for full access privileges. |
Previous Message | Next Message | Back to VBBS/VADV How-To <-- <--- | Return to Home Page |
|
||||||
From | To | Subject | Date/Time | |||
Papabill | Admiral Wilson | Renaming files with a date in bat file |
June 27, 2007 10:28 PM |
|||
Re: Renaming files with a date in bat file I have my system archive the daily log files in a directory with the filename as a date. Here is my batch file: ARCHIVE.BAT @echo off rem Now we set the date to enable it to write as a filename FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T' DO SET CDATE=%%B For /f "tokens=2-4 delims=/ " %%a in ('date /t' do (set date=%%a%%b%%c) md c:\va\archive\%date% rem Now, using the command line winzip, we create archives cd \va wzzip -a c:\va\archive\%date%\va%date% *.log del *.log cd \va\data wzzip -a c:\va\archive\%date%\data%date% *.log del *.log cd \va ************************************** > How do I rename a file to something like todays date, 06272007.log inside a > batch file? I wish to archive my bbs logs into the file area with vupload. |
||||||
|
Previous Message | Next Message | Back to VBBS/VADV How-To <-- <--- | Return to Home Page |
Execution Time: 0.0136 seconds If you experience any problems with this website or need help, contact the webmaster. VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved. Virtual Advanced Copyright © 1995-1997 Roland De Graaf. |