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
   Networked Database  VBBS/VADV How-To   [442 / 1099] RSS
 From   To   Subject   Date/Time 
Message   Computer Whiz    Admiral Wilson   Renaming files with a date in bat file   July 27, 2007
 11:02 AM  

Re: Renaming files with a date in bat file

> 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.
>
> Thanks

I basically, a long time ago, not long after I started with VADV in 1996, wrote
and compiled a simple quickbasic program to do it for me, and had it run at
12:00am.  Basically, I would do it this way because it automatically saves the
log as BBSLOG.1 for the previous day (and BBSLOG.2 for 2 days before and
BBSLOG.3 for 3 days before).  I would have my nightly maintenance batch file
back up the log by running BAKUPLOG.EXE that I created, which copies the
BBSLOG.1 to LGmmddyy.BBS, mmddyy being the month, day, and year, respectively.
I would do the same for the network log and call log, and name them to
LGmmddyy.NET and LGmmddyy.CAL.  The batch would add them to BBSLOG.zip,
NETLOG.zip, and CALLS.zip, so I could open up the archive at any time to look
up a certain day.  But, anyway, that is how I did it, and it has worked for 11
years.

Chris

���� CHRIS-CO BBS�telnet://bbs.chris-co.org�VADV 2.10�@1205037 VirtualNet ۲��
����         Gypsy dwarf escapes jail:  Small medium at large.            ۲��
����            Never let a machine know you're in a hurry                ۲��
����       Political Promises-oxymorons believed in by Democrats.         ۲��
����             Failure is the path of least persistence.                ۲��
����      SLEEP:that fleeting moment just before the alarm goes off       ۲��
����                 Do not remove under penalty of law.                  ۲��
����         Two can live as cheaply as one, for half as long.            ۲��
����            One Iraqui dictator can ruin your whole day.              ۲��
����                  !!     Just say NO to 2400      !!                  ۲��
����           This isn't a tagline. It just looks like one.              ۲��
����                 Grow your own dope, plant a female!                  ۲��
����                   Police Tagline.  Do not cross.                     ۲��
����      You've obviously been educated beyond your intelligence.        ۲��
����          grep..grep..grep... (Frog w/UNIX stuck in throat)           ۲��
����               ����h�� �C�hanks for hanging up, dear.                ۲��
����             Smash forehead on keyboard to continue ...               ۲��
����             Real hackers' method: COPY CON: PROGRAM.EXE              ۲��
����       I'm in search of myself ...  Have you seen me anywhere?        ۲��
����         Install failed. Attempting to transfer virus to c:           ۲��
����             Only the mediocre are always at their best.              ۲��
����         The chip's canna' take much more o'this, Captain.            ۲��
����           Don't drink and park: accidents cause people.              ۲��
����             Black holes are where God divided by zero.               ۲��
����                 You want me to pay for bug fixes???                  ۲��
����               If Q were castrated, would he become O?                ۲��
����      Stupidity got us into this mess; why can't it get us out?       ۲��
����                   In Case of Fire, Log off Promptly                  ۲��
����                      IF(!CRASH()) _THANK_GOD();                      ۲��
����          If idiots could fly, Bill Clinton would be a 747            ۲��
����      Handwritten on a condom machine; "This gum tastes funny"        ۲��
����                 Puns are bad, but poetry is verse.                   ۲��
����         This tagline utterly lacks class, but is very cute           ۲��
����              He who hesitates is trampled by the mob.                ۲��
����                    You are HERE   ----> ! <----                      ۲��
����          Life would be easier if I had the source code.              ۲��
����       Press <Ctrl-Alt-Del> now to access the pirate software.        ۲��
����                Programs get overlaid, why can't I?                   ۲��
����      Back Up My Hard Drive? I Can't Find The Reverse Switch!         ۲��
����         --T-A+G-L-I+N-E--+M-E-A+S-U-R+I-N-G+--G-A+U-G-E--            ۲��
����            Programs. Ones w/bugs & ones w/hidden bugs.               ۲��
����       ... and that is how we know the Earth is banana-shaped         ۲��
����           Psychoceramics: The study of liberal crackpots             ۲��
����                From the land of graft and corruption!                ۲��
����             Sure, I've used OS/2.  But I didn't inhale!              ۲��
����              This tagline is free with this message!!                ۲��
����      3 kinds of people: Those who can count; those who can't.        ۲��
����                      .aixelsyd evah t'nod I ,aN                      ۲��
����              ZIHM-   ���umop ap!s-dn �ON SI SIH� `ON                 ۲��
����         Consistency: The last refuge of the unimaginative            ۲��
����               Don't recall us...we'll recall you....                 ۲��
����          No more Clinton/Gore, they screwed us all in '94!           ۲��
����        If it's working OK, then something's GOTTA be wrong!          ۲��
����                   Programmers do it top down...                      ۲��
����      We want peaceful relations, or we'll blow up your country       ۲��
����               "Illiterate? ... Write for FREE help."                 ۲��
����        It depends on which end he tries he tries to light...         ۲��
����       This tagline was filmed before a live studio audience.         ۲��
����               How do I set my Laser Printer to "Stun"?               ۲��
����           Usually insane; in lucid moments merely stupid.            ۲��
����           If it's useless, it will have to be documented.            ۲��
����             To iterate is human, to recurse is divine!               ۲��
����      Professional mail reader on closed modem. Do not attempt.       ۲��
����               Do you like me for my brain, or my BAUD?               ۲��
����      The total destruction of civilization can really ruin you       ۲��
����             Trees are the #1 cause of forest fires...                ۲��
����          Data, data everywhere, and not a nibble to byte!            ۲��
����      Sysoping: More fun than being beaten with a sledgehammer        ۲��
����    WARNING!  No user serviceable characters inside this tagline.     ۲��
����              IBM - Making Tommorow's Mistakes Today!!!               ۲��
����        Oral sex: the cannibalization of the next generation.         ۲��
����                 hAS ANYONE SEEN MY cAPSLOCK KEY?                     ۲��
����   The Borg assimilated me, and all I got was this stupid T-shirt     ۲��
����             If its stupid and it works - its not stupid              ۲��
����              help1ican'tfindthespacebarnortheshiftkey1               ۲��
����                 Not tonight dear, I have a modem.                    ۲��
����   Windows 95 isn't a virus. A virus does what it's supposed to.      ۲��
����           Drop your carrier ... We have you surrounded!              ۲��
����              He who dies with the most TAGLINES wins!                ۲��
����          Wake me when someone says something intelligent.            ۲��
����        This tagline is SHAREWARE!  To register, send me $10          ۲��
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to VBBS/VADV How-To  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0152 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.
v2.1.241108