I would like to convert this /bin/sh syntax into a widely compatible windows batch script:
host=`hostname`
echo ${host}
How to do this so that it'll work on any Vista, WinXP, Win2k machine?
To clarify: I would then like to go on in the program and use the hostname as stored in the variable host
. In other words, the larger goal of the program is not to simply echo the hostname.