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 <MailTo:Doug.M.Stratton@xxxxxxxxxxxxxxx>