Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

      April 30, 2026

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    How To

    Network Scanner with Status Indicator Batch File Script

    Computing StaffBy Computing StaffSeptember 23, 2021
    Twitter LinkedIn Email Telegram
    Network Scanner with Status Indicator Batch File Script
    Twitter LinkedIn Email Telegram

    I created this batch file because I needed a quick way to see what ip addresses were available on my home network in order to assign static ip addresses. I think this could be very useful to others! Let me know what you think or if I can improve it in any way!!

    START OF CODE:

    @echo off
    :Intro
    echo.
    echo Network Scanner
    echo -----------------
    echo.
    echo This batch file scans the IP address range with a timeout of 160ms
    echo.
    echo.
    echo Please enter the first three sets of the ip address in this format:
    set /p ipbegin=Example: "192.168.1" :

    if exist errorchk.bat del errorchk.bat
    if exist "%userprofile%\desktop\IP Scan.txt" del "%userprofile%\desktop\IP Scan.txt"
    if exist "%userprofile%\desktop\Domain Scan.txt" del "%userprofile%\desktop\Domain Scan.txt"

    ::Create errorchk.bat
    echo @echo off>>errorchk.bat
    echo echo.>>errorchk.bat
    echo echo Error level finder>>errorchk.bat
    echo rem run program>>errorchk.bat
    echo call %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9>>errorchk.bat
    echo. >>errorchk.bat
    echo for /l %%%%f in (255, -1, 0) do (>>errorchk.bat
    echo if errorlevel=%%%%f echo Errorlevel=%%%%f>>errorchk.bat
    echo )>>errorchk.bat

    set errorlevel=0

    rem Declare variables
    set timeout=0

    if "%1"=="" (
    echo Default timeout used [160 ms]
    set timeout=160
    echo.
    )

    :settimeout
    if %timeout%==0 set timeout=%1

    :default
    for /l %%f in (1, 1, 254) do (
    set errorlevel=0

    call "errorchk.bat" ping -n 1 -w %timeout% %ipbegin%.%%f  > nul

    rem log entry
    if not errorlevel=1 echo %ipbegin%.%%f active>>"%userprofile%\desktop\IP Scan.txt"
    if errorlevel=1 echo %ipbegin%.%%f inactive>>"%userprofile%\desktop\IP Scan.txt"

    if %%f EQU 1 (cls
    echo.
    echo [                             ]    0 Percent Complete)
    if %%f EQU 25 (cls
    echo.
    echo [###                          ]    10 Percent Complete)
    if %%f EQU 55 (cls
    echo.
    echo [######                       ]    20 Percent Complete)
    if %%f EQU 75 (cls
    echo.
    echo [#########                    ]    30 Percent Complete)
    if %%f EQU 100 (cls
    echo.
    echo [############                 ]    40 Percent Complete)
    if %%f EQU 125 (cls
    echo.
    echo [###############              ]    50 Percent Complete)
    if %%f EQU 150 (cls
    echo.
    echo [##################           ]    60 Percent Complete)
    if %%f EQU 175 (cls
    echo.
    echo [#####################        ]    70 Percent Complete)
    if %%f EQU 200 (cls
    echo.
    echo [########################     ]    80 Percent Complete)
    if %%f EQU 225 (cls
    echo.
    echo [###########################  ]    90 Percent Complete)
    if %%f EQU 254 (cls
    echo.
    echo [#############################]    Network Scan complete)
    )

    if exist errorchk.bat del errorchk.bat

    echo.
    echo.
    echo.
    echo.
    echo If you would like to get a list of all machines on your
    echo.
    echo current domain, please type 'y' and hit enter.
    echo.
    echo.
    echo Otherwise, press any key to exit...
    set /p yes= :
    if %yes%==y (
    goto domainscan
    set errorlevel=0
    goto end
    )

    :domainscan
    :: Scans Network and returns Active Computer Names
    net view /all >> "%userprofile%\desktop\Domain Scan.txt"

    echo.
    echo.
    echo.
    echo [#############################]    Domain Scan completed
    echo.
    echo.
    echo.
    echo Please reivew the logs placed on your desktop
    echo.
    echo Press any key to exit
    pause >nul

    :end
    exit

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Computing Staff
    • Website

    Related Posts

    Batch Files: Tokens and Delimiters (FOR Loops)

    July 31, 2024

    Types of Ethernet Cabling & Electrical Low Voltage Wiring

    July 9, 2024

    What You Should Know About .JSON File Extension

    January 10, 2023

    Bkup File Extension

    November 19, 2022

    HEIC File Extension

    November 19, 2022

    Working with Batch variables and For loops

    October 6, 2021
    Add A Comment

    Comments are closed.

    Latest

    20+ Avalanche AVAX Crypto Casinos: Best Options Reviewed With Pros & Cons

    August 9, 2026

    19+ SUI Crypto Casinos: Best Options Reviewed With Pros & Cons

    August 9, 2026

    22+ Litecoin LTC Crypto Casinos: Best Options Reviewed With Pros & Cons

    August 9, 2026

    20+ ZCash ZEC Crypto Casinos: Best Options Reviewed With Pros & Cons

    August 9, 2026

    20+ Bonk Coin BONK Crypto Casinos: Best Options Reviewed With Pros & Cons

    August 9, 2026
    • Facebook
    • Twitter

    Latest Reviews

    GetImg.AI Review: Powerful AI Image & Video Generator & Editor

    August 8, 2026

    PDF.ai Review: Chat & Analyze Any PDF Document Using AI

    August 8, 2026

    Wild.io Review: Crypto Casino With 400% Welcome Bonus & 300FS

    August 8, 2026

    Immerion Review: Crypto Casino With 250% Welcome Bonus & 250 FS

    August 8, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    August 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.