Answered by:
Shell Function

Question
-
TextBox3.Text = FORMAT C: /Q
Shell(TextBox3.Text,AppWinStyle.NormalFocus, True)I am trying to get the format command to execute as shown however when I run it I get a file not found.
Any ideas please
- Moved by Amanda Zhu Tuesday, January 14, 2014 1:41 AM not vs general issue
Thursday, January 9, 2014 2:49 PM
Answers
-
I am using Visual Studio Express 2012 - Visual Basic
For vb.net issues, please post them in Visual Basic forum.remember make the reply as answer and vote the reply as helpful if it helps.
- Proposed as answer by Dave PatrickMVP Sunday, January 19, 2014 4:26 PM
- Marked as answer by Ben Ramsay Monday, January 20, 2014 9:50 AM
Tuesday, January 14, 2014 7:57 AM
All replies
-
Hi,
Which langue do you use to develop this program? Visual Basic or C#?
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System and Visual Studio Editor. Please provide us detailed information, we will check whether we can move this thread for better response.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Friday, January 10, 2014 3:20 AM -
I am using Visual Studio Express 2012 - Visual BasicTuesday, January 14, 2014 7:53 AM
-
I am using Visual Studio Express 2012 - Visual Basic
For vb.net issues, please post them in Visual Basic forum.remember make the reply as answer and vote the reply as helpful if it helps.
- Proposed as answer by Dave PatrickMVP Sunday, January 19, 2014 4:26 PM
- Marked as answer by Ben Ramsay Monday, January 20, 2014 9:50 AM
Tuesday, January 14, 2014 7:57 AM -
That looks suspiciously like you are trying to format someone's hard drive without their permission.
For all responders, please see Contributors: How to avoid aiding the development of malicious code
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})Tuesday, January 14, 2014 9:27 PM -
It is part of a deployment program, I am trying to develop a easy to use deployment system that will allow a user to deploy a custom image that they have created onto their computer without having to be a Microsoft expert. A format command is necessary to clean the drive ready for the dism command.Wednesday, January 15, 2014 10:54 AM