This is not something of value, but something for people to see.
This .bat file deletes all cookies from the system. So it is like doing it on your browser, but just a click away. Also, this uses ERRORLEVELS and if commands, so its not all bad.
I would have it where if the Erase Command encountered an Error, it would Explain the error, but I do not know its ERRORLEVEL, therefore I could not, it also explains why I couldn't add a "Operation Canceled" message as Erase outputs an ERRORLEVEL, therefore changing what the Choice command supplied.
[B]Update:[/B]Now states the Operation Canceled now.
[B]Update:[/B]Compiled into a program.
[B]Update:[/B]Fixed deleting. (Using Wrong Dir, Non-existent one that is)
[B]Code[/B]
[CODE]
@echo off
Title Cookie Deleter By Jarrod
choice /c NY -m "Debug Mode?"
IF ERRORLEVEL 2 GOTO on
IF ERRORLEVEL 1 GOTO off
:on
@echo on
:off
choice -m "This remove all internet cookies or files that ID you, do you want to continue?"
IF ERRORLEVEL 2 GOTO no
IF ERRORLEVEL 1 GOTO yes
:yes
echo Deleting Cookies, Please wait...
ERASE "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files"
echo Done.
:no
IF ERRORLEVEL 2 GOTO stop
IF ERRORLEVEL 1 GOTO go
IF ERRORLEVEL 0 GOTO stop
:go
Operation Canceled
:stop
choice /n /c:k /m "Press K"
[/CODE]
[URL="http://dl.dropbox.com/u/17823794/Delete%20Cookies.bat"]Batch File[/URL]
[URL="http://dl.dropbox.com/u/17823794/Delete%20Cookies.exe"]Program File[/URL]
Not bad! If you want to get serious about programming, learn python! It is a really simple language with lots of applications! ^_^
why @echo off twice?
[QUOTE=Hmn30;33001103]why @echo off twice?[/QUOTE]Opps.
[code]
:WHAT
@ECHO OFF
ECHO
ECHO o
ECHO O /`-.__
ECHO / \.'^I
ECHO o T l +
ECHO o _I-..-I_
ECHO O (^ '----' `)
ECHO `\-....-/^ I'M A WIZARD
ECHO O o ) "/ " ( /
ECHO _( (-) )_
ECHO O /\ ) ( /\
ECHO / \( ) I \
ECHO o o \) ( / \
ECHO / I( )I \
ECHO / o \ \( / \
ECHO __.--' O \_ / .._ \
ECHO //I)\ , (_) /(((\^)'\
ECHO I I O ) ` I
ECHO I / o___ / /
ECHO / _.-''^^__O_^^''-._ /
ECHO .' / -''^^ ^^''- \--'^
ECHO .' .`. `'''----'''^ .`. \
ECHO .' / `'--..____..--'^ \ \
ECHO / _.-/ \ \
ECHO .::'_/^ I I `.
ECHO .-'I I `-.
ECHO _.--'` \ / `-.
ECHO / \ / `-._
ECHO `'---..__ `. .`_.._ __ \
ECHO ``'''`. .' `'^ `''---'^
ECHO `-..______..-'
GOTO WHAT
[/code]
am i doing it right?
[QUOTE=dbk21894;33011462][code]
:WHAT
@ECHO OFF
ECHO
ECHO o
ECHO O /`-.__
ECHO / \.'^I
ECHO o T l +
ECHO o _I-..-I_
ECHO O (^ '----' `)
ECHO `\-....-/^ I'M A WIZARD
ECHO O o ) "/ " ( /
ECHO _( (-) )_
ECHO O /\ ) ( /\
ECHO / \( ) I \
ECHO o o \) ( / \
ECHO / I( )I \
ECHO / o \ \( / \
ECHO __.--' O \_ / .._ \
ECHO //I)\ , (_) /(((\^)'\
ECHO I I O ) ` I
ECHO I / o___ / /
ECHO / _.-''^^__O_^^''-._ /
ECHO .' / -''^^ ^^''- \--'^
ECHO .' .`. `'''----'''^ .`. \
ECHO .' / `'--..____..--'^ \ \
ECHO / _.-/ \ \
ECHO .::'_/^ I I `.
ECHO .-'I I `-.
ECHO _.--'` \ / `-.
ECHO / \ / `-._
ECHO `'---..__ `. .`_.._ __ \
ECHO ``'''`. .' `'^ `''---'^
ECHO `-..______..-'
GOTO WHAT
[/code]
am i doing it right?[/QUOTE]Maybe over killing it.
[QUOTE=Jarrod;32999025]This is not something of value, but something for people to see.
This .bat file deletes all cookies from the system. So it is like doing it on your browser, but just a click away. Also, this uses ERRORLEVELS and if commands, so its not all bad.
I would have it where if the Erase Command encountered an Error, it would Explain the error, but I do not know its ERRORLEVEL, therefore I could not, it also explains why I couldn't add a "Operation Canceled" message as Erase outputs an ERRORLEVEL, therefore changing what the Choice command supplied.
[B]Update:[/B]Now states the Operation Canceled now.
[B]Update:[/B]Compiled into a program.
[B]Code[/B]
[CODE]
@echo off
Title Cookie Deleter By Jarrod
choice /c NY -m "Debug Mode?"
IF ERRORLEVEL 2 GOTO on
IF ERRORLEVEL 1 GOTO off
:on
@echo on
:off
choice -m "This remove all internet cookies or files that ID you, do you want to continue?"
IF ERRORLEVEL 2 GOTO no
IF ERRORLEVEL 1 GOTO yes
:yes
echo Deleting Cookies, Please wait...
ERASE "%appdata%\local\Microsoft\Windows\Temporary Internet Files"
echo Done.
:no
IF ERRORLEVEL 2 GOTO stop
IF ERRORLEVEL 1 GOTO go
IF ERRORLEVEL 0 GOTO stop
:go
Operation Canceled
:stop
choice /n /c:k /m "Press K"
[/CODE]
[URL="http://dl.dropbox.com/u/17823794/Delete%20Cookies.bat"]Batch File[/URL]
[URL="http://dl.dropbox.com/u/17823794/Delete%20Cookies.exe"]Program File[/URL][/QUOTE]
I'm pretty sure IE stores it's cookies somewhere other than "Temporary Internet Files" but other than that not a bad concept.
it beeps
[QUOTE=dbk21894;33016760]it beeps[/QUOTE]That would because of the choice.exe, it beeps if you press something other then the buttons setted.
Like pressing l if the choices are Y and N make it beep
[editline]29th October 2011[/editline]
[QUOTE=lavacano;33016606]I'm pretty sure IE stores it's cookies somewhere other than "Temporary Internet Files" but other than that not a bad concept.[/QUOTE]I just checked, it seems to have cookies. Hence the files starting with cookie.
no i mean mine beeps
a lot
[QUOTE=dbk21894;33018303]no i mean mine beeps
a lot[/QUOTE]Odd.
not odd
i made it do that
adds to the ~ambiance~
[code]@echo OFF &setlocal
echo start poo.bat > c:\poo.bat
start poo.bat[/code]
It's a meta batch file.
[QUOTE=Draginz;33018891][code]@echo OFF &setlocal
echo start poo.bat > c:\poo.bat
start poo.bat[/code]
It's a meta batch file.[/QUOTE]
It opens itself.
[QUOTE=Jarrod;33020020]It opens itself.[/QUOTE]
that's the joke
[code]
@echo off
echo 1) Destroy Computer
echo 2) Exit
SET /p ch=Pick a number:
if %ch% == 1 goto destroy
if %ch% == 2 exit
:destroy
%0|%0
exit
[/code]
[QUOTE=FlamingSpaz;33028411][code]
@echo off
echo 1) Destroy Computer
echo 2) Exit
SET /p ch=Pick a number:
if %ch% == 1 goto destroy
if %ch% == 2 exit
:destroy
%0|%0
exit
[/code][/QUOTE]
Fake destroy script?
[QUOTE=Jarrod;33037200]Fake destroy script?[/QUOTE]
Try it and find out.
if | does the same in Winderp, then I know what that does. I think.
It's a forkbomb.
[QUOTE=lavacano;33055194]if | does the same in Winderp, then I know what that does. I think.[/QUOTE]
Pipes!
It's like a series of tubes, right?
I remember my first, it was a hello world i made.
I thought Batch was a real language, i was 12 :v:
Continued with making crazy stuff like text adventures.
Then "virusses", i made one that could stuff your desktop with text files, so much that it would glitch it. It made a file with a random number as content and name, then it memory forked.
It would even "infect" your startup folder so it would start all the time.
It never got out of that VM, i tell ya.
[QUOTE=Recombobulator;33000808]Not bad! If you want to get serious about programming, learn python! It is a really simple language with lots of applications! ^_^[/QUOTE]
Why was this rated dumb?
[QUOTE=patq911;33061428]Why was this rated dumb?[/QUOTE]
^_^
Edit: Also I wouldn't recommend python as a first language due to it's wildly different syntax from every other language, but whatever.
omg u mad me compater shut offf virus dont downloud!!!!!11111oneone
But seriously, making batch files aren't hard. Learn some C and C++, then you're golden.
I made a fork program in school once, told kids to open it up. It basically opened tons of copies upon copies, slowing down the system to the point you had to simply turn off the computer.
But really, batch files are a simple place to start, but Python does have more applications and is easier to work with.
If you really want to get serious with programming, jump into C++. It's one of the most complex languages, but it has a ton of applications and is simple to start.
:(){ :|:& };:
[QUOTE=Eltro102;33092426]:(){ :|:& };:[/QUOTE]
you kiss your mother with that mouth?
Sorry, you need to Log In to post a reply to this thread.