[THIN] Re: HELP ASAP Need help with a DOS Batch file

  • From: Joe shonk <jshonk_dhl@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 12 Sep 2003 12:08:16 -0700 (PDT)

I'm not quite sure what your requirements are, but let's see.
 
You need a script that will monitor who is logged in (or the last user to have 
logged in) to remote machine.
 
A simple wsh/vbscript should do the trick.
 
Joe

"Stratton, Doug MSER:EX" <Doug.M.Stratton@xxxxxxxxxxxxxxx> wrote:

I am echoing some data to a text file from a batch file I have. 

I need to echo the current user or last logged on user on the same line from 
the remote computer I am poling. 

Here is the problem. 

I am running this batch file remotely so I can't just echo the username 
environment variable on the same line. 
                I get the local value of course 

I am getting the registry value remotely.  (to a text file). 

I can't find a way to echo the contents of the registry text file on the same 
line I am echoing the other environment variable values I have created


Here is the example: 
Echo %1, unknown os             %patch1%        %patch2%        %Reboot1%>> 
msbrelt.txt 

Patch1, patch2 reboot1 are all variables I have created. 

QUESTIONS: 
How can I add to this line the value of a remote registry value 
What would be easiest would be if I could set another environment variable to 
the remote registry value. 

Echo %1, unknown os             %patch1%        %patch2%        %Reboot1%       
%whoishe% >> msbrelt.txt 

Thanks for help 

Hope this is clear. 

Doug Stratton 
Technology Development Analyst 

Workplace Support
Common IT Services 
Solutions BC

Phone: 250 356-6678 Fax: 250 356-1960
MailTo:Doug.M.Stratton@xxxxxxxxxxxxxxx 




---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Other related posts: