Windows Batch Ping a network segment

Source: Internet
Author: User
Tags ipscan

Original: 51288248

----------------------------------------------------------------

    • If you want to know your local area network or outside the network any part of the online IP, or want to know how many people at the same time on the internet how to do? Maybe we all think about finding tools or something. In fact, the use of Windows built-in batch processing can fully realize the purpose of batch ping to find the designated network Segment Survival host! Look down.
@echo offset /p ip="请输入IP地址段,格式如:"192.168.1." >>> "for /L %%i in (1,1,254) do (Ping.exe -n 1 -l 16 -w 100 %ip%%%i>>ipscan.txtif not errorlevel 1 (echo %ip%%%i 可以ping通))pause
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • Copy the above code into the Notepad document and save as Ipscan.bat. Then double-click a button to run the Ipscan.bat batch script as prompted to enter the IP segment to scan, you can see the results returned. The format is similar to:

Please enter the IP address segment in the format: "192.168.1." >>> 192.168.1.
192.168.1.100 can ping through
192.168.1.101 can ping through
192.168.1.102 can ping through
192.168.1.103 can ping through
192.168.1.104 can ping through
192.168.1.123 can ping through
192.168.1.144 can ping through
192.168.1.146 can ping through
192.168.1.149 can ping through
192.168.1.150 can ping through
Please press any key to continue ...

      • Can you guys read it? You can enter for/in the CMD window if you can't read it. View command details or search online for learning. ##

Windows Batch Ping a network segment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.