| delorie.com/archives/browse.cgi | search |
| Message-ID: | <396D6646.F8952B3@uclink4.berkeley.edu> |
| From: | Phil Robyn <probyn AT uclink4 DOT berkeley DOT edu> |
| Organization: | Univ. of California, Berkeley |
| X-Mailer: | Mozilla 4.73 [en] (WinNT; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.misc,comp.os.msdos.djgpp |
| Subject: | Re: to pipe system variables other variables at command line |
| References: | <3957018F DOT 35C44125 AT gmx DOT de DOT de> <3959A07F DOT FB5A37A6 AT uclink4 DOT berkeley DOT edu> <396D0344 DOT 83788EA9 AT bestweb DOT net> |
| Lines: | 21 |
| Date: | Thu, 13 Jul 2000 06:48:38 GMT |
| NNTP-Posting-Host: | 12.72.65.178 |
| X-Complaints-To: | abuse AT worldnet DOT att DOT net |
| X-Trace: | bgtnsc05-news.ops.worldnet.att.net 963470918 12.72.65.178 (Thu, 13 Jul 2000 06:48:38 GMT) |
| NNTP-Posting-Date: | Thu, 13 Jul 2000 06:48:38 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Kenneth Brody wrote:
> Phil Robyn wrote:
> >
> > Stephan Rink wrote:
> >
> > > I like to pipe a system variables to another variable at a MS DOS shell
> > > without using a file.
> [...]
> > for /f "tokens=*" %a in ('date /t') do set zdate=%a
>
> What version of DOS are you running? No version I know of has such a
> syntax.
>
This is for WinNT 'DOS' (CMD.EXE, NT's replacement for COMMAND.COM),
since the original poster was using WinNT.
Phil Robyn
Univ. of California, Berkeley
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |