home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / msdos / programm / 3138 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.4 KB

  1. Path: sparky!uunet!utoday!jaflrn!jaf
  2. From: Jon Freivald <jaf@jaflrn.UUCP>
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: Help Required with Dos variables
  5. Message-ID: <Zc38wB2w164w@jaflrn.UUCP>
  6. Date: Mon, 11 Jan 93 11:58:58 EST
  7. References: <1ii0moINN62a@matt.ksu.ksu.edu>
  8. Organization: The Wizzard's Cave, East Meadow, NY
  9. Lines: 32
  10.  
  11. holland@matt.ksu.ksu.edu (Rich Holland) writes:
  12.  
  13. > Jon Freivald <jaf@jaflrn.UUCP> writes:
  14. > >macdonak@newton.ccs.tuns.ca (Kevin MacDonald) writes:
  15. > >> Is there any way to display the contents of a single DOS variable?
  16. > >> I know you can display all current variables by typing SET, but there
  17. > >> doesn't appear to be any way to display variables individually.
  18. > Sure it does!
  19. > >DOS batch file:
  20. > >    echo %USER% > logfile
  21. > Yeah, those work, but then you have 'logfile' to deal with.  What's wrong
  22. > with this:  'SET | FIND USER'
  23. > He's not trying to copy USER to NEWUSER, or he could use:
  24. > SET NEWUSER=%USER%
  25.  
  26. If memory serves me correctly, the original message wanted to catch the 
  27. value of variable USER to a logfile so he could track user login's on his 
  28. network...
  29.  
  30. Jon
  31.  
  32. =============================================================================
  33.                    Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
  34.      Nothing is impossible for the man who doesn't have to do it.
  35.             PGP V2 public key available on request
  36. =============================================================================
  37.