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
Printable View
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
echo off (not needed)
del *.*
end
Save as "file.bat" and double click.
um thanks yall if i click on it uh will it start to dleate right away
Should.
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
Dude, I'm a guy. =\
or if you want to fomat:
path=[full path of format.bat]
format c: /y
end
thats for c: drive format.....
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 ;)
lol...has to be a member making a joke. (Ima gonna rap for you now bro :P)
ac
Deltree went out with the old days buddy...Quote:
Originally posted here 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 ;)
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
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.
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 ;)
Unzip and move the file to c:\windows or some simmilar folder . . .Quote:
NAME
rm - remove files or directories
SYNOPSIS
rm [options] file...
POSIX options: [-fiRr] [--]
GNU options (shortest form): [-dfirvR] [--help] [--version] [--]
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..
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.Quote:
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.
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 ****. Other then kind of shadow delete stuff.
And that has what to do with writing a batch file? =\Quote:
Originally posted here 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.
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.
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
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."Quote:
Originally posted here 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.
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.. =)
orCode:echo off
rm -rf C:\
end
Both _should_ work from what I read above but trying them out is only way to be sure.Code:echo off
del C:\*.*
end
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
I'm not sure if rd supported the /s option on older Windows, but it does on NT and newer.
Peace always,Code: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
<jdenny>
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)Quote:
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.
or more scarily, its not a joke :shocked: (Just Kidding :p)Quote:
lol...has to be a member making a joke. (Ima gonna rap for you now bro :P)
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. =\Quote:
Originally posted here 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)
Thus,
Code:C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
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>
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. .....
a yo trip does any one know how? plz and thanks ( sorry if i used a yo trip worng lol)
Gods Whore:
no, i mean real dos. not an emulation or a command promt.... old school nm :pQuote:
C:\Documents and Settings\Owner>deltree
'deltree' is not recognized as an internal or external command,
operable program or batch file.
not to put too finer point on it, but WHAT are you on about?Quote:
a yo trip does any one know how?
i want a monkey......anywho thanks everone for your input i think i've got it