CPN commit

This commit is contained in:
2026-01-22 21:33:18 +01:00
parent ad8c842c06
commit 0636336797
3 changed files with 431 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
@echo off
REM === Interactive Ping Tool ===
echo ========================================
echo Network Ping Tool
echo ========================================
echo.
REM Prompt for target (website or server IP)
set /p TARGET="Enter website or server IP to ping: "
REM Validate input
if "%TARGET%"=="" (
echo.
echo ERROR: No target specified!
pause
exit /b 1
)
REM Prompt for ping mode
echo.
echo Ping Mode:
echo [1] Single ping test (4 packets)
echo [2] Continuous ping (until stopped with Ctrl+C)
echo.
set /p MODE="Select mode (1 or 2): "
echo.
echo ========================================
echo Starting ping to: %TARGET%
echo ========================================
echo.
REM Execute ping based on selected mode
if "%MODE%"=="1" (
echo Mode: Single test - sending 4 packets...
echo.
ping -n 4 %TARGET%
echo.
echo ========================================
echo Ping test completed!
echo ========================================
) else if "%MODE%"=="2" (
echo Mode: Continuous ping - Press Ctrl+C to stop
echo.
ping -t %TARGET%
) else (
echo.
echo ERROR: Invalid selection! Please choose 1 or 2.
pause
exit /b 1
)
echo.
pause

View File

@@ -0,0 +1,174 @@
@echo off
REM === System Information Tool ===
echo ========================================
echo System Information Tool
echo ========================================
echo.
echo Select information category:
echo.
echo [1] Quick Overview (System Summary)
echo [2] Hardware Information (CPU, RAM, Motherboard)
echo [3] Storage Information (Disks, Partitions)
echo [4] Network Information (IP, Adapters, Connections)
echo [5] Operating System Details
echo [6] Running Processes and Services
echo [7] Graphics Card Information
echo [8] Battery Status (Laptops only)
echo [9] Complete System Report (All Information)
echo [0] Export Report to File
echo.
set /p CHOICE="Enter your choice (0-9): "
echo.
echo ========================================
if "%CHOICE%"=="1" goto QUICK_OVERVIEW
if "%CHOICE%"=="2" goto HARDWARE
if "%CHOICE%"=="3" goto STORAGE
if "%CHOICE%"=="4" goto NETWORK
if "%CHOICE%"=="5" goto OS_INFO
if "%CHOICE%"=="6" goto PROCESSES
if "%CHOICE%"=="7" goto GRAPHICS
if "%CHOICE%"=="8" goto BATTERY
if "%CHOICE%"=="9" goto COMPLETE
if "%CHOICE%"=="0" goto EXPORT
goto INVALID
:QUICK_OVERVIEW
echo System Overview
echo ========================================
systeminfo | findstr /C:"Host Name" /C:"OS Name" /C:"OS Version" /C:"System Type" /C:"Total Physical Memory" /C:"System Manufacturer" /C:"System Model"
goto END
:HARDWARE
echo Hardware Information
echo ========================================
echo.
echo === Processor ===
wmic cpu get name,numberofcores,maxclockspeed
echo.
echo === Memory ===
wmic memorychip get capacity,speed,manufacturer
echo.
echo === Motherboard ===
wmic baseboard get manufacturer,product,version
goto END
:STORAGE
echo Storage Information
echo ========================================
echo.
echo === Disk Drives ===
wmic diskdrive get model,size,status
echo.
echo === Partitions and Free Space ===
wmic logicaldisk get deviceid,volumename,size,freespace,filesystem
goto END
:NETWORK
echo Network Information
echo ========================================
echo.
echo === IP Configuration ===
ipconfig
echo.
echo === Network Adapters ===
wmic nic get name,netconnectionstatus,speed
echo.
echo === Active Connections ===
netstat -an | findstr ESTABLISHED
goto END
:OS_INFO
echo Operating System Details
echo ========================================
systeminfo | findstr /C:"OS" /C:"System Boot Time" /C:"Windows Directory" /C:"System Directory" /C:"Boot Device"
echo.
echo === Installed Hotfixes ===
wmic qfe list brief
goto END
:PROCESSES
echo Running Processes and Services
echo ========================================
echo.
echo === Top Processes by Memory ===
tasklist /FI "STATUS eq running" | sort /R /+63
echo.
echo === Running Services ===
net start
goto END
:GRAPHICS
echo Graphics Card Information
echo ========================================
wmic path win32_VideoController get name,adapterram,driverversion,currentrefreshrate,videoprocessor
goto END
:BATTERY
echo Battery Status
echo ========================================
wmic path win32_battery get estimatedchargeremaining,estimatedruntime,batterystatus
if errorlevel 1 (
echo No battery detected - this might be a desktop computer.
)
goto END
:COMPLETE
echo Complete System Report
echo ========================================
echo Generating comprehensive system information...
echo This may take a moment...
echo.
systeminfo
echo.
echo ========================================
echo Hardware Details
echo ========================================
wmic cpu get name,numberofcores,maxclockspeed
wmic memorychip get capacity,speed
wmic diskdrive get model,size
wmic path win32_VideoController get name,adapterram
goto END
:EXPORT
echo Export System Report
echo ========================================
set FILENAME=SystemReport_%date:~-4,4%%date:~-7,2%%date:~-10,2%_%time:~0,2%%time:~3,2%.txt
set FILENAME=%FILENAME: =0%
echo Generating report and saving to: %FILENAME%
echo.
(
echo ========================================
echo SYSTEM INFORMATION REPORT
echo Generated: %date% %time%
echo ========================================
echo.
systeminfo
echo.
echo ========================================
echo HARDWARE INFORMATION
echo ========================================
wmic cpu get name,numberofcores,maxclockspeed
wmic memorychip get capacity,speed
wmic diskdrive get model,size
wmic path win32_VideoController get name,adapterram
echo.
echo ========================================
echo NETWORK INFORMATION
echo ========================================
ipconfig /all
) > %FILENAME%
echo.
echo Report saved successfully to: %FILENAME%
goto END
:INVALID
echo ERROR: Invalid selection! Please choose 0-9.
goto END
:END
echo.
echo ========================================
echo.
pause