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 BAT Magic  <--  <--- Return to Home Page
   Local Database  BAT Magic   [81 / 250] RSS
 From   To   Subject   Date/Time 
Message   Visitor    ALL   SAVEDATE.BAT   August 30, 1995
 11:12 PM *  

ORIGINALLY from: Steve Reid
ORIGINALLY to  : Sean Sutherland

SS> I'm wondering if its possible to do this:  Echo the current date
SS> into an environment variable, change the date, and then change it back
SS> to what it was before; from a batch file.  I can do it manually, but an
SS> automatic method would be easier.  Thanks.

Ah, an easy one! :)  Try this:

@echo off
echo.ate>tmpzz.bat
echo set date=%%4>current.bat
call tmpzz.bat
del tmpzz.bat
del current.bat
echo %date%

That will place the current date, in MM-DD-YYYY format, into the
variable %date%. When you want to restore the date, just use the
following commands:

echo %date%ate>nul
set date=

___ Blue Wave/QWK v2.12
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to BAT Magic  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0157 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