Article View: alt.msdos.programmer
Article #1114Re: Help Required with Dos variables
From: Jon Freivald
Date: Mon, 11 Jan 1993 16:58
Date: Mon, 11 Jan 1993 16:58
32 lines
1497 bytes
1497 bytes
holland@matt.ksu.ksu.edu (Rich Holland) writes:
> Jon Freivald <jaf@jaflrn.UUCP> writes:
>
> >macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:
>
> >> Is there any way to display the contents of a single DOS variable?
> >> I know you can display all current variables by typing SET, but there
> >> doesn't appear to be any way to display variables individually.
>
> Sure it does!
>
> >DOS batch file:
> > echo %USER% > logfile
>
> Yeah, those work, but then you have 'logfile' to deal with. What's wrong
> with this: 'SET | FIND USER'
>
> He's not trying to copy USER to NEWUSER, or he could use:
> SET NEWUSER=%USER%
If memory serves me correctly, the original message wanted to catch the
value of variable USER to a logfile so he could track user login's on his
network...
Jon
=============================================================================
Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
Nothing is impossible for the man who doesn't have to do it.
PGP V2 public key available on request
=============================================================================
Technical Details
Message-ID:
<Zc38wB2w164w@jaflrn.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jafReferences:
<1ii0moINN62a@matt.ksu.ksu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jaf From: Jon Freivald <jaf@jaflrn.UUCP> Newsgroups: alt.msdos.programmer Subject: Re: Help Required with Dos variables Message-ID: <Zc38wB2w164w@jaflrn.UUCP> Date: Mon, 11 Jan 93 11:58:58 EST References: <1ii0moINN62a@matt.ksu.ksu.edu> Organization: The Wizzard's Cave, East Meadow, NY Lines: 32