Search found 1 match

by ElizabethGreene
17 Oct 2013 09:51
Forum: DOS Batch Forum
Topic: How do I create a batch file to prompt for a name to ping?
Replies: 2
Views: 3844

Re: How do I create a batch file to prompt for a name to pin

Hello. Like this: @echo off set /P Target=Please enter the name of the host to ping: ping %Target% If you want to be really sexy: @echo off :targetprompt set /P target=Please enter the name of the host to ping: if "%target%"=="" ( echo A target is required, or you can press CTRL-...