🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: nl.comp.programmeren
Article #568

Re: Datum opvragen - batchbestand

#568
From: Luc Kumps
Date: Tue, 16 Apr 2002 12:26
18 lines
1586 bytes
Probeer dit eens in een .BAT file:

for /F "usebackq tokens=2" %%i in (`date /t`) DO set date=%%i

Luc

"BOBJE" <someone@microsoft.com> wrote in message
news:KxSu8.12$K31.774@nreader3.kpnqwest.net...
> Hoe kan ik in een batchbestand,onder windows NT 4.0, de datum opslaan in
een
> variabele?
> De onderstaande code werkt perfect voor Win 2000:
> set vandaag = %date~4,2%%date:~7,2%%date:~10,4%
>
> Dank u
>
>
>
Technical Details
Message-ID: <2MUu8.20114$Ze.4666@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <KxSu8.12$K31.774@nreader3.kpnqwest.net>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: 107324,e1190960a06b3e49
X-Google-Attributes: gid107324,public
X-Google-Thread: fcea4,e1190960a06b3e49
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-04-16 05:34:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
From: "Luc Kumps" <NOkumpsSPAM@pandora.be>
Newsgroups: nl.comp.programmeren,be.comp.programming
References: <KxSu8.12$K31.774@nreader3.kpnqwest.net>
Subject: Re: Datum opvragen - batchbestand
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <2MUu8.20114$Ze.4666@afrodite.telenet-ops.be>
Date: Tue, 16 Apr 2002 12:26:38 GMT
NNTP-Posting-Host: 213.118.68.224
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1018959998 213.118.68.224 (Tue, 16 Apr 2002 14:26:38 MET DST)
NNTP-Posting-Date: Tue, 16 Apr 2002 14:26:38 MET DST
Organization: Telenet Internet