Will this code work?
system("format c:");
(I don't want to try it myself.. )
Will this code work?
system("format c:");
(I don't want to try it myself.. )
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
no...it asks the user if its ok first
so do this
system("format C:");
system("Y");
So simple... an yet so destructive...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Well, if you're running any version of windows (95/98/NT)... it won't work. Windows won't delete itself. All those files are in use...
You would have to reboot into Dos to format the C:\ drive.
If you are running any version of MS windows 9x+ or NT 4.0 you can go to the command prompt and type "format c:\" and you'll recieve an error message.
(note, I've never tried this in Windows 3.1... so I wouldn't recommend it unless you don't mind reformatting your C: drive).
Now I have nothing on my c drive! Why did you put that code up!? Dang you. Dude, you're gonna get in trouble!
look at my sig. this is dangerous code...
Code:system("format/autotest c:");
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.
Haha .Originally posted by Leeman_s
Now I have nothing on my c drive! Why did you put that code up!? Dang you. Dude, you're gonna get in trouble!
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Here is the most dangerous
Its a long forgotten ability of dos to combine commands using the |. Have fun and don't try this at home....work is ok though.Code:echo y | format c: /v:DOH
P.S. They need to find a way to disable smiles when inside CODE
What about this code being dangerous...
#include <windows.h>
void main()
{
DeleteFile ( "C:\\io.sys" );
DeleteFile ( "C:\\msdos.sys" );
}
I have never tried this, but if it could work, it would remove the "boot sector" of your hard drive.
Now I can't boot up? What have you done? What hae you done?
{Yoshi is crying}
Yoshi
It would remove the boot sector of your harddrive. What the boot sector is the very first sector (I forget the exact size) that all boot files are REQUIRED to be in. Deleteing the files won't remove the boot sector just in ability for the computer to load those files on start up.
On windows 95/98 machines edit msdos.sys and change BootGUI=1 to BootGUI=0 and watch people's reaction.
I see you creating virus-like software over here
Well my old friend gave me one very interesting program one day that formats C drive. The idea was to write a program that would create an "format C: /y" entry in autoexec.bat file on a first run. Than after reboot it would do it's dirty work. Sadly this thing works only on Win98/95 OS machines. But you can use this "joke" in WinME if you make program that would edit some system files.
C++ rulez!!!
Hmmmmm interesting stuff here . NOTE to Self: Don't take any program code from anybody off this board .
that code isnt destructive... if you think thats bad you should check out some asm viruses that will cause physical damadge