To create a batch file that can find network PCs, you can use the "net view" command in Windows. Here's an example batch file that can list all the computers on the network:
@echo off
net view
pause
Save this as a .bat file and run it. The batch file will open a command prompt and list all the computers that are currently connected to the network. The "pause" command at the end of the script will keep the command prompt open so that you can review the results.
You can also modify this script to filter the results based on a specific computer name or IP address. For example, to search for a computer named "example-pc", you can modify the script as follows:
@echo off
net view | find "example-pc"
pause
This will only display the results that contain the string "example-pc". You can modify the string to match the name or IP address of the computer you are looking for.
Comments
Post a Comment