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,233 of 68,980    |
|    Petr Laznovsky to All    |
|    Re: How BGinfo could read output of cmd     |
|    20 May 18 01:54:49    |
   
   From: nobody@nowhere.com   
      
   Dne 19.5.2018 v 23:37 Herbert Kleebauer napsal(a):   
   > On 19.05.2018 22:19, Petr Laznovsky wrote:   
   >   
   >> Have script to discovery public IP address of machine behind NAT by   
   nslookup:   
   >>   
   >> for /f "tokens=4 delims=: " %%a in ('   
   >> nslookup -debug myip.opendns.com resolver1.opendns.com   
   2^>NUL^|findstr/C:"internet   
   >> address"   
   >> ') do echo %%a   
   >>   
   >> Want to display output of script by bginfo but it have not built-in ability   
   to read output of batch   
   >> script, only WMI query or VBScript. Anyone have idea what to do?   
   >   
   > But Google says, BGInfo can display environment variables or the   
   > contents of a text file. Write the output of the script to a text   
   > file or store it in an environment variable, then BGInfo should   
   > be able to display it.   
   >   
   > http://www.itprotoday.com/management-mobility/bginfo:   
   >   
   > || Custom Fields   
   > ||   
   > || What if you want to display a system or application setting for   
   > || which BGInfo has no built-in field? Simply click Custom to open   
   > || the Define New Field dialog box, which Figure 2 shows. BGInfo   
   > || offers a variety of potential information sources, including   
   > || environment variables, registry values, file version information   
   > || — even the contents of a text file.   
   >   
      
   I cant realize this, thanks for point me to the right direction. Thinking   
   about periodical script   
   run, pushing output to the variable by SETX.   
      
   L.   
      
   --- 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