Section One BBS

Welcome, Guest.


Subject: Re: Question Date: Fri Nov 23 2018 10:53 am
From: IB JOE To: Brother Rabbit

On 11/23/18, Brother Rabbit said the following...
 BR>  JS> for /f "delims=" %%x in.... See it in the section beclow??

 BR>  JS> :Start

 BR>  JS> @echo off
 BR>  JS> :start
 BR>  JS> cd\Somewhere
 BR>  JS> for /f "delims=" %%x in ('date /t') do set date=%%x

 BR> What do you expect from this code?

 BR>  JS> del joes.asc
 BR>  JS> echo %Date% >>JOES.ASC

 BR> It's seems to me, you may use simple code like:

 BR> date /t > JOES.ASC

 BR> BTW, %DATE% holds current date in windows environment. Try it in OS/2.

 BR> D:\Fido>echo %date%

 BR> 23.11.2018

 BR> D:\Fido>date /t

 BR> 23.11.2018

 
That didn't happen... in a OS/2 or DOS session I type echo %date% and it does
not echo the date... it echos %date%.

Apparently the line I have been using for years might be a little cryptic... its
worked for decades so I have never thought of changing it.

I know someone who can help me with a Linux fix, the BBS runs on a Pi, and
may be done with that... I'm still doing a back and forth about just running the
BBS in Windows so that I won't be asking as many stupid questions.

Thanx

IB JOE
AKA Joe Schweier
SysOp of Joe's Computer & BBS
Telnet: joesbbs.com

--- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
 * Origin: Joe's Computer & BBS -=joesbbs.com=- (1:342/201)

Previous Message       Next Message
In Reply To: Question (Brother Rabbit)