Slyck.com
 
Slyck Chatbox - And More

Microsoft Visual Basic

This is the forum to discuss tech-software related issues.
Forum rules
PLEASE READ BEFORE POSTING: Slyck Forum Rules

Microsoft Visual Basic

Postby OmegaGreg » Fri Aug 24, 2007 6:28 pm

Is anyone here experienced in Visual Basic?

I'm looking for a command that would reformat the C: And that I can assign to a command box so it would execute in a single click. I'm assuming it would do it by opening command prompt and entering it there.

Or is it not possible with a single click?

Thank you in advance.
User avatar
OmegaGreg
 
Posts: 1487
Joined: Tue Dec 21, 2004 2:55 am
Location: USA

Re: Microsoft Visual Basic

Postby scubascythan » Fri Aug 24, 2007 7:22 pm

Why does it have to be done in visual basic?
scubascythan
 
Posts: 57
Joined: Wed Mar 23, 2005 2:05 pm

Re: Microsoft Visual Basic

Postby OmegaGreg » Fri Aug 24, 2007 7:34 pm

It's a wager, I asked a friend if it was possible to do, and they said yes.

They wouldn't show me though, and they said it was too hard for me to figure out and code. They were so confidant that I would fail that they offered to test it on their own computer.

So...any suggestions?
User avatar
OmegaGreg
 
Posts: 1487
Joined: Tue Dec 21, 2004 2:55 am
Location: USA

Re: Microsoft Visual Basic

Postby scubascythan » Fri Aug 24, 2007 8:17 pm

If you're running windows and the active partition is the c drive, you won't be able to format it no matter what.
scubascythan
 
Posts: 57
Joined: Wed Mar 23, 2005 2:05 pm

Re: Microsoft Visual Basic

Postby OmegaGreg » Fri Aug 24, 2007 8:41 pm

Alright....

But do you happen to know the code and commands needed to make a program do this using Visual Basic?
User avatar
OmegaGreg
 
Posts: 1487
Joined: Tue Dec 21, 2004 2:55 am
Location: USA

Re: Microsoft Visual Basic

Postby konkat » Fri Aug 24, 2007 9:24 pm

I'm thinking the shell command will do this.
Something like this:
i = Shell("format.com a:")
konkat
 
Posts: 87
Joined: Fri Nov 12, 2004 9:17 am

Re: Microsoft Visual Basic

Postby OmegaGreg » Fri Aug 24, 2007 10:00 pm

And I just assign this to a command button, and this will open prompt and format the A drive, or whatever drive I desire?

If so, you are awesome.

Who's the man?

You da man.
User avatar
OmegaGreg
 
Posts: 1487
Joined: Tue Dec 21, 2004 2:55 am
Location: USA

Re: Microsoft Visual Basic

Postby multivariable » Fri Aug 24, 2007 10:03 pm

OmegaGreg wrote:... They wouldn't show me though, and they said it was too hard for me to figure out and code

Seems as though they were right, then.

Unless, of course, "figuring it out" means asking someone else how to do it. :wink:
User avatar
multivariable
 
Posts: 27959
Joined: Sat Jan 21, 2006 11:28 am

Re: Microsoft Visual Basic

Postby OmegaGreg » Fri Aug 24, 2007 10:22 pm

lol.

I'm a programing virgin, you got me. Only a few days ago I was learning how to write the infamous "Hello World" Application (Or so it seems to be, I see it everywhere).

I would've figured it out eventually (hopefully). But they didn't win so it's okay, I just want to see their face as their computer is being reformatted.

I appreciate all the help, thank you.
User avatar
OmegaGreg
 
Posts: 1487
Joined: Tue Dec 21, 2004 2:55 am
Location: USA

Re: Microsoft Visual Basic

Postby Nutty-Slack » Fri Aug 24, 2007 10:32 pm

OmegaGreg wrote:Only a few days ago I was learning how to write the infamous "Hello World" Application (Or so it seems to be, I see it everywhere).

Yep, I can confirm that they use that in UK institutions also.
Wish I could contribute, but all the VB, Pascal, COBOL, C etc. that they whipped into me aeons ago seems to have evaporated from my withering peanut of a brain. :cry:
"If you don't use it, you'll lose it" as the saying goes.

Quibus Societas Nobis Intemporaliter
User avatar
Nutty-Slack
 
Posts: 2379
Joined: Tue Jan 16, 2007 11:08 pm
Location: Shit Creek (UK)

Re: Microsoft Visual Basic

Postby JolietJake » Fri Aug 24, 2007 10:42 pm

Trying to format the boot partition while windows is running isn't possible (that i know of). Writing a batch file and getting them to run it before booting up however..... :mrgreen:
You can't trust freedom when it's not in your hand.
JolietJake
 
Posts: 1347
Joined: Wed Mar 01, 2006 10:42 pm


Return to Tech/Software Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron
© 2001-2008 Slyck.com