1

Any suggestions? This is a wrong code:

@echo off
echo Enter IP address of remote computer:
set /p ip=

nbtstat -a  %ip%
| improve this question | | | | |
  • Try changing your 3rd line to set /p ip=IP: – Durry42 Mar 3 at 12:29
2

Run nbtstat -A instead of nbtstat -a. -A switch accepts ip addresses. Where -a accepts remote names.

| improve this answer | | | | |
  • It keeps me run this loop.. Enter IP address of remote computer: 10.164.181.245 Enter IP address of remote computer: 10.164.181.245 Enter IP address of remote computer: Enter IP address of remote computer: 10.164.181.245 – Daryl Ormido Feb 19 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.