Click to See Complete Forum and Search --> : bat? need help yall plz
thefrt
September 7th, 2004, 06:48 AM
uh yall know any good bat tutorials and uh yall wanna help a brota out i need a source code fo a bat program that will delete a harddrive plz and thanks yall
God's Whore
September 7th, 2004, 06:51 AM
echo off (not needed)
del *.*
end
Save as "file.bat" and double click.
thefrt
September 7th, 2004, 06:53 AM
um thanks yall if i click on it uh will it start to dleate right away
God's Whore
September 7th, 2004, 06:55 AM
Should.
thefrt
September 7th, 2004, 07:04 AM
thanks playa now ima rap for u
uh uh uh yea
gods hor, can offa more, or she can bring war, for yall, i be at the mall,
still hoin in the fall, dont mess w/me my man is about about 15 feet tall,
you dont wanna meet him, hes freak he likes the feet then,
and he can only get the best of and rest with me
so bye yall im gods hor i cant give you any more
or else you'll have ta fear gods wrath, and he will give the whole world a bath
edit: changed the rap a bit and uh some spelling at the top and chaged that too
edit: had ta fix the top again
God's Whore
September 7th, 2004, 07:12 AM
Dude, I'm a guy. =\
CybertecOne
September 7th, 2004, 07:22 AM
or if you want to fomat:
path=[full path of format.bat]
format c: /y
end
thats for c: drive format.....
the_JinX
September 7th, 2004, 09:03 AM
well the del *.* shouldn't work..
It'll ask if you are sure you want to delete..
And also won't delete directory's, nor their content..
deltree would be a better option..
and the same /y given in the above "format" example should work with del and deltree too ;)
gothic_type
September 7th, 2004, 12:20 PM
lol...has to be a member making a joke. (Ima gonna rap for you now bro :P)
ac
God's Whore
September 7th, 2004, 12:54 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261767#post787980) by the_JinX
well the del *.* shouldn't work..
It'll ask if you are sure you want to delete..
And also won't delete directory's, nor their content..
deltree would be a better option..
and the same /y given in the above "format" example should work with del and deltree too ;)
Deltree went out with the old days buddy...
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
SerpentSin
September 7th, 2004, 01:21 PM
If you´re going to use a batch file to "delete" a hard drive, make sure you use a boot disk, ´cause in fat and ntfs systems, you´re not allowed to format the boot partition. And even then, the data might still be recoverable. The best thing to do would be to build a program that iterates through every cluster on the disk, writing random data.
the_JinX
September 7th, 2004, 01:34 PM
And I thought Microsoft Windows was supposed to be backward compatible (not just backward ;))
Well anyways I can advice unix's rm as the best delete (command)
Attached is a windows port of rm ;)
NAME
rm - remove files or directories
SYNOPSIS
rm [options] file...
POSIX options: [-fiRr] [--]
GNU options (shortest form): [-dfirvR] [--help] [--version] [--]
Unzip and move the file to c:\windows or some simmilar folder . . .
Usage in a bat like you requested . . .
@echo off
rm -Rf c:\*
end
The deleted stuff is still recoverable, as SerpentSin pointed out you need more radical deletion for that..
whizkid2300
September 7th, 2004, 02:09 PM
And even then, the data might still be recoverable. The best thing to do would be to build a program that iterates through every cluster on the disk, writing random data.
You are actually half right half wrong, it is said that your have to delete and write over something 32 times to have it completely untraceable from a hard drive. So you and your little delete *.* /y aren't going to do much, I can still see what you had on your drive. If I really wanted to be an *******, I could use this little device that costs 300 bucks, and copy the entire data from one to another drive. At blazing speed, and have your drive back in your hard drive before you got back from lunch.
Though I am definately thinking that this was a joke from someone. You can pick up any windows manual or even google for how to delete a hard drive. Though if I remember correctly all the above doesn't actually really do shit. Other then kind of shadow delete stuff.
God's Whore
September 7th, 2004, 02:36 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261767#post788015) by whizkid2300
You are actually half right half wrong, it is said that your have to delete and write over something 32 times to have it completely untraceable from a hard drive. So you and your little delete *.* /y aren't going to do much, I can still see what you had on your drive. If I really wanted to be an *******, I could use this little device that costs 300 bucks, and copy the entire data from one to another drive. At blazing speed, and have your drive back in your hard drive before you got back from lunch.
And that has what to do with writing a batch file? =\
whizkid2300
September 7th, 2004, 03:19 PM
I never said it had anything to do with it. Quad quiet the **** down dude. It was something that needed to be pointed out, because I didn't feel anyone had made that fact clear.
thefrt
September 7th, 2004, 08:33 PM
lol sorry about that but your name is god whore lol so i went wit it, so i try again
gods whore, can bring a gangsta war, he can bring more then you've ever seen befor
so relax just sit back and drink your ajax, dont tax your self, go see a remax, and relax
send a fax, to your hommie max, sue that mother, too, if hee mess with you
can any one give me the god by chance? plz!
edit: lol srry yall i meant code god = code
God's Whore
September 7th, 2004, 09:39 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261767#post788024) by whizkid2300
I never said it had anything to do with it. Quad quiet the **** down dude. It was something that needed to be pointed out, because I didn't feel anyone had made that fact clear.
The question pertained to writing a batch that deletes your files, not whether or not you "have to delete and write over something 32 times to have it completely untraceable from a hard drive."
And I'm not Quad...
Let's review for so you're not confused...
1.) Your response had how much relevance on how to write a batch file?
2.) We've established that I am not whom?
[edit]
Nice rap thefrt.. =)
echo off
rm -rf C:\
end
or
echo off
del C:\*.*
end
Both _should_ work from what I read above but trying them out is only way to be sure.
gothic_type
September 7th, 2004, 10:28 PM
I don't believe that del is recursive, however (as was pointed out above) - so rm -rf would work, but not del C:\*.*
del would delete all the files that are in the root folder of your C drive, but would go no further.
ac
jdenny
September 10th, 2004, 05:31 AM
I'm not sure if rd supported the /s option on older Windows, but it does on NT and newer.
C:\>rd /?
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S
Peace always,
<jdenny>
CybertecOne
September 10th, 2004, 05:42 AM
Deltree went out with the old days buddy...
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
might be the old days to you, but for me and other people allike its still valuable... thats cause we still use dos (myself quite frequently)
lol...has to be a member making a joke. (Ima gonna rap for you now bro :P)
or more scarily, its not a joke :shocked: (Just Kidding :p)
God's Whore
September 10th, 2004, 06:04 AM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=261767#post789032) by CybertecOne
might be the old days to you, but for me and other people allike its still valuable... thats cause we still use dos (myself quite frequently)
At the risk of you sounding like an idiot, apparently you don't use DOS that frequently... the deltree command is not in the newest version of DOS. =\
Thus,
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
jdenny
September 10th, 2004, 09:13 AM
He could be using Win98 or something...
Come on people, there was no single flame in Programming Security, Code Review and General Programming Questions forums. Let's keep it that way...
Peace always,
<jdenny>
CybertecOne
September 10th, 2004, 10:34 AM
who said anything about using the latest version of dos???
all i was saying is that you said commands like that are old, im was just pointing out that they still are indeed valuable to some people.
i still use programs like Xtree Gold and QD3 also. .....
thefrt
September 12th, 2004, 10:46 PM
a yo trip does any one know how? plz and thanks ( sorry if i used a yo trip worng lol)
CybertecOne
September 13th, 2004, 05:12 AM
Gods Whore:
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
no, i mean real dos. not an emulation or a command promt.... old school nm :p
a yo trip does any one know how?
not to put too finer point on it, but WHAT are you on about?
thefrt
September 17th, 2004, 11:28 PM
i want a monkey......anywho thanks everone for your input i think i've got it