Search found 2 matches

by notb
18 Oct 2006 13:45
Forum: DOS Batch Forum
Topic: Hostname in batch file
Replies: 2
Views: 13857

Thanks for the tip on the FOR loop, I didn't know.

As far as the presence of the env var is concerned, wow, that's embarrassing :oops:

I'm certainly all set now.
by notb
16 Oct 2006 11:31
Forum: DOS Batch Forum
Topic: Hostname in batch file
Replies: 2
Views: 13857

Hostname in batch file

In a batch file, how can I get the return value of a command into a variable? For example, I'd like to have a variable set with the 'hostname' return value.