Post: Simple Batch Program (Network Issues & Disk Issues)
02-20-2017, 04:06 PM #1
Algebra
[move]mov eax, 69[/move]
(adsbygoogle = window.adsbygoogle || []).push({}); So had to make a program for college. This had to be coded in a batch file and it needed to have simple input from users. So i made this works a lot of the time when i have network issues or to check my disk and fix the errors if there is any.*

I never really posted in this section so I just thought why not.*
Simple program &amp ; code is below you can also edit the program by right clicking on it.*


    
@echo off
title Derek's simple fix
color a
cls
echo If you want to fix network issues*
echo Please see below V
:netchoice
set /P c=Do you want to continue[Y/N]?
if /I "%c%" EQU "Y" goto :networkfixyes
if /I "%c%" EQU "N" goto :diskcheck
goto :netchoice
:networkfixyes
echo --------------------------------
echo Please make sure you're admin
echo --------------------------------
echo This solves most network issues
echo --------------------------------
echo Firewall will be turned back on*
echo --------------------------------
echo Network will be reset*
echo --------------------------------
netsh int ip reset reset.txt
netsh advfirewall reset
netsh winsock reset
echo --------------------------------
echo
goto :diskcheck
:diskcheck
echo --------------------------------
echo Do you want to check your disk
echo For any errors and fix them ?
echo --------------------------------
:choice
set /P c=Do you want to continue[Y/N]?
if /I "%c%" EQU "Y" goto :yesdiskcheck
if /I "%c%" EQU "N" goto :nodiskcheck
goto :choice
:yesdiskcheck
echo Now checking your disk
echo --------------------------------
chkdsk
chkdsk /F
goto :nodiskcheck
:nodiskcheck
echo
echo Please hit enter to exit
pause
exit
goto :nodiskcheck



You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo