I wrote a batch file and want it to run according to the machine's name. For example, machines starting with "A" won't run it, and machines starting with "Y" will. How can this be done using only batch processing, without any tools????
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by gzrjhxh at 2006-10-20 02:30:
Thanks, everyone.. I also found a method myself, sharing it.. hehe...
echo %userdomain% | find /i "y" && goto y