ms dos- if statements

April 12, 2011 at 10:50:18
Specs: Windows XP
I love writing batch files by the way : ) and I am trying to write a batch file that takes an input (the name of a computer) from the user and checks to see if that computer name is valid or exists on the domain that he/she is on then outputs/echo's if it is true (exists) or false (doesn't exist). I tried using the if exist statements but I can't seem to figure this out, how can I search for a name through a domain? Usually if exist statements only search over you computer. Is there maybe some other means of doing this, I also looked into for loops which I haven't really dealt with much but it still didn't seem to help. I can take in inputs fine and output fine it is just the whole if statements that are giving me trouble. Thanks to anyone that can help.

See More: ms dos- if statements

Report •

April 12, 2011 at 11:15:49
Oh yeah before anyone starts complaining, i didn't realize i was posting in the wrong section until afterwards.

Report •
Related Solutions

Ask Question