BRO in help........!

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
joakim
Posts: 24
Joined: 07 Mar 2012 12:08

BRO in help........!

#1 Post by joakim » 02 Apr 2012 12:45

Hi i need help with this line start "sfc /all" its pops up then goes down. PS i dont care about the spelling right now XD

i fix it later XD



@echo off
color a
cls
title PC CLEANER Skillsa2
echo.
echo This is program, helps you clean your PC.
echo.
echo.
echo 1. remove start up programs.
echo.
echo 2. Uinstall programs.
echo.
echo 3. cleans unessesery space.
echo.
echo 4. scanns for virus and errors.



set/p "cho=>"

if %cho%==1 goto 1A
if %cho%==2 goto 2A
if %cho%==3 goto 3A
if %cho%==4 goto 4A

cls
:1A


start appwiz.cpl

:2A

start cleanmgr

:2A


start msconfig

:4A


start "sfc /all"


IF YOU HELP ME I WILL GIVE AWAY A FREE XBOX 360 member ship for 3 monse free XD :!: :!: :!: :!:

joakim
Posts: 24
Joined: 07 Mar 2012 12:08

Re: BRO in help........!

#2 Post by joakim » 02 Apr 2012 12:47

Oops i forgot this is the code "sfc /scannow"

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: BRO in help........!

#3 Post by abc0502 » 02 Apr 2012 13:03

all what you did was right u just missing the exit or goto end after every command,
and you don't need the start as long you use system programs and you added ":2A" twice

Code: Select all

@echo off
color 0a
cls
title PC CLEANER Skillsa2
echo =================================
echo = This is program, helps you clean your PC  =
echo =================================
echo 1. Uninstall Programs.
echo 2. Clean Un-nessacery Space.
echo 3. Remove StartUp Programs.
echo 4. scanns for virus and errors.

echo.
set /p "cho=>"
if %cho%==1 goto 1A
if %cho%==2 goto 2A
if %cho%==3 goto 3A
if %cho%==4 goto 4A

:1A
appwiz.cpl
goto end

:2A
cleanmgr
goto end

:3A
msconfig
goto end

:4A
sfc /scannow
goto end

:end


(Edit) you can keep the membership :lol:

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: BRO in help........!

#4 Post by Squashman » 02 Apr 2012 13:46

And since you have no error checking if someone enters an incorrect option it will default to running appwiz.cpl

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: BRO in help........!

#5 Post by abc0502 » 02 Apr 2012 14:01

@Squashman Right if you want to get a error message and start all over again try:

Code: Select all

@echo off
color 0a
cls
title PC CLEANER Skillsa2
:start
echo =================================
echo = This is program, helps you clean your PC  =
echo =================================
echo 1. Uninstall Programs.
echo 2. Clean Un-nessacery Space.
echo 3. Remove StartUp Programs.
echo 4. scanns for virus and errors.

echo.
set /p "cho=>"
if %cho%==1 goto 1A
if %cho%==2 goto 2A
if %cho%==3 goto 3A
if %cho%==4 goto 4A
echo Incorrect Choise
ping localhost -n 3 >nul
cls
goto start

:1A
appwiz.cpl
goto end

:2A
cleanmgr
goto end

:3A
msconfig
goto end

:4A
sfc /scannow
goto end

:end

joakim
Posts: 24
Joined: 07 Mar 2012 12:08

(SOLVED) TNX OMG TY

#6 Post by joakim » 02 Apr 2012 14:10

OMG TNX FOR ALL THE WORK, PM IF Squashman OR abc0502 whant a XBOX 360 code BROS, this POST is now (SOLVED) :D :D :D :D :D :D :D :D

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: BRO in help........!

#7 Post by Squashman » 02 Apr 2012 19:17

Not a gamer.
Unless it is Arkanoid.

Post Reply