Help creating a batch file

October 8, 2010 at 01:08:27
Specs: Windows XP
Is it possible to set-up a small batch file, which will run this command: nbtstat -a

But allow the user to then enter the ip address after the line.
Then when they press enter run the command?

See More: Help creating a batch file

Report •

October 8, 2010 at 01:37:44
Microbatch, In this forum, we have quite a bit of generalized knowledge, but you'll likely get more and more knowledgeable responses in the programming forum @:
Ed in Texas.

Report •

October 13, 2010 at 17:37:00
yes, It can be used by set /p command.

below can be the syntax.

@echo off
set /p IP= Enter the target IP and press enter :
nbtstat -a %ip%

Set /p _Exit=Prss enter to Exit:

You can use loop if you want to keep the same scrren after pressing enter.

Subhash Chandra.

Report •

Related Solutions

Ask Question