Hack Forums

Full Version: Tracing Batch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi i wrote another batch

it is a tracing batch
hope u guys like it

Code:
@echo off
title Tracing Batch
cls
color 4
echo.
echo #################################################
echo #***********************************************#
echo #*                Tracing Batch                *#
echo #***********************************************#
echo #*             Written By: THE BOSS            *#
echo #***********************************************#
echo #*             wWw.THE-BOSS.8M.Com             *#
echo #***********************************************#
echo #################################################
echo.
:NUM_1
echo.
echo Just type a website's name or an IP to trace.
echo (ex: google.com, www.google.com or 127.1.1.1)
echo.


set /p VAR=

msg * Tracing "%VAR%"

tracert "%VAR%"

msg * Trace Comlpete

set /p CHS= Do you want to do another trace? (Yes or No)
IF '%CHS%' == 'Yes' GOTO NUM_1
IF '%CHS%' == 'yes' GOTO NUM_1
IF '%CHS%' == 'no' GOTO NUM_2
IF '%CHS%' == 'No' GOTO NUM_2

:NUM_2
echo.
echo ###########################
echo #*************************#
echo #* Written By: THE BOSS  *#
echo #*************************#
echo #*  wWw.THE-BOSS.8M.Com  *#
echo.#*************************#
echo ###########################
echo.

pause
exit
nice good job
thanks man
You can write this:
Code:
IF '%CHS%' == 'Yes' GOTO NUM_1
IF '%CHS%' == 'yes' GOTO NUM_1
IF '%CHS%' == 'no' GOTO NUM_2
IF '%CHS%' == 'No' GOTO NUM_2

like this:
Code:
if /i %chs%==yes goto NUM_1
if /i %chs%==no goto NUM_2

Try it out.
good job but i dont belive someone does not know to use tracert anyway, good job
thankss guys
I find this to be (yet useless, sorry) one of the best uses of batches ever written and posted on HF. Yes, it is a bit useless (cause you could just use tracert directly from the command line), but you are getting the right idea on how to really use batches. A good idea might now be to add more functionnality to your batch. Maybe, after the tracert you do for example, a limited ping, and a nslookup. That way you automate 3 programs in one. That would be a useful batch! Nice job all the same, I hope that the rest of the "batch virus writers" start following your example!!
lol, retard tracert :P just playing
i like that :) thx
i made this thing just to save time instead of typing all the command u can just use this batch and i will try to update it and add more functions to it

if u have any cool idea of what else can i add to it tell me
Pages: 1 2
Reference URL's