Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-12-2005, 09:09 PM   #1 (permalink)
 
Newb Techie

Join Date: Jul 2005

Posts: 5

humanentropy

Default C++/ VB reformat

i need to make a floppy that autoruns and does the following:

runs a C++ or VB program that automatically reformats the C drive


if anyone could give me the code, it would be greatly appreciated.



I really need this. thank you very much.



humanentropy is offline  
Old 08-12-2005, 09:27 PM   #2 (permalink)
 
Ultra Techie

Join Date: Jul 2005

Posts: 530

TheHeadFL

Send a message via AIM to TheHeadFL
Default

You have just about no hope of making a VB program do that since it cannot be run in DOS.

You could always just use a batch file (autoexec.bat)... but to do it in code.. you'd have to write it in C/C++ or a language like it. And all you'd do is just make a bootable floppy, and your C++ code would make a system call to "format.com" which would format the disk.

That being said, it doesn't sound like you are asking for this for any legitimate use, so you're on your own for coming up with that code.
__________________
Desktop machine: 2 x Opteron 246, Asus K8N-DL, 2GB PC3200 ECC Reg., XFX GeForce 6600GT, 74gb WD Raptor, 2 x 19\" LCDs, Windows XP x64
Server machine: Intel P4 3.0GHz 2MB EM64T, ECS i865pe, 1GB PC3200, 36gb WD Raptor, Windows Server 2003
Laptop: Dell Inspiron 9100 (Intel P4 3.2GHz 1MB Prescott, i865pe, 512MB PC3200, Mobility Radeon 9700, DVD+R/DL Burner), Windows XP
Linux: P3 450Mhz, 386MB ram, Slackware 10.1 (Running mySQL/Apache)
TheHeadFL is offline  
Old 08-12-2005, 09:37 PM   #3 (permalink)
 
Newb Techie

Join Date: Jul 2005

Posts: 5

humanentropy

Default

i dont know how to write batch because im a n00b
i do have a purpose, so i can hand it out to ppl who cannot reformat their computers, so i dont have to wait the while to reinstall windows.


please help me
humanentropy is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On