Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-10    |    Steaming pile of horseshit Windows 10    |    197,590 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 197,166 of 197,590    |
|    R.Wieser to All    |
|    Re: Whats the %=C:% environment variable    |
|    06 Feb 26 20:32:27    |
   
   XPost: alt.comp.os.windows-xp, alt.windows7.general, alt.msdos.batch.nt   
   From: address@is.invalid   
      
   Herbert,   
      
   > some more information about "Undocumented Dynamic variables":   
   >   
   > https://ss64.com/nt/syntax-variables.html   
      
   Funny: They start with mentioning the allowed characters for the variable   
   name, and a bit later on showing that that gets violated.   
      
   And by the way, as I've mentioned a few times, the "=" *can* be part of the   
   variable name (as its first character) just not when trying to write.(to)   
   one ("echo %=C:%" does work)   
      
   > and especially for the %=C:% :   
   >   
   > https://devblogs.microsoft.com/oldnewthing/20100506-00/?p=14133   
      
   [quote]   
   But why put these internal variables in the environment? Can't they just be   
   regular variables inside the cmd.exe process?   
      
   The variables are exported into the environment because you want these "fake   
   per-drive current directories" *to be inherited by child processes*.   
   [/quote]   
   (bolding mine)   
      
   Yep, at some point I realized that that might be the /only/ reason for them   
   to be there.   
      
   [quote]   
   What should you do about these variables, then?   
      
   Nothing. Just let them be and do their jobs. I’m just mentioning them here   
   so you won’t freak out when you see them.   
   [/quote]   
      
   Meh. :-)   
      
   Thanks for the info.   
      
   Regards,   
   Rudy Wieser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca