home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,003 of 68,980   
   Herbert Kleebauer to Tim Rude   
   Re: Expand a variable within a variable   
   14 Aug 17 23:25:31   
   
   From: klee@unibwm.de   
      
   On 14.08.2017 21:50, Tim Rude wrote:   
      
   >>> for /f "usebackq tokens=1,2,*" %%B IN (`reg query   
   >>> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User   
   >>> Shell Folders" /v Desktop`) do set DT=%%D   
   >   
   > but if there is a nifty way to do something similar using the SET   
   > command, I'm all ears.   
      
   Replace:   
   do set DT=%%D   
      
   by:   
   do call set DT=%%D   
      
   --- 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