-
help..in vb.net with dos prompt
dear sir,
currently i m doing a research on communication between a shell program in
command prompt with vb.net. i tried to launch my dos cmd command using my
program in vb.net
but if i wish to pass some parameter how can i do so???
for example, shell out my cmd dos command then i wan to pass in parameter
like c: then let the command prompt process then i pass again another parameter
and get the respond
can it do something like tat in vb.net
pls advice me wif some sample example.
thanks v.much for ur advice.
peiyoon
currently i am testing on following code:
Dim myProcess As Process = New Process()
myProcess.StartInfo.FileName = "notepad"
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
myProcess.EnableRaisingEvents = True
System.Windows.Forms.SendKeys.SendWait("2")
System.Windows.Forms.SendKeys.SendWait("{Enter}")
System.Windows.Forms.SendKeys.SendWait("3")
i am able to perform so from notepad not able for command prompt window.
-
Re: help..in vb.net with dos prompt
In article <3db8a39e$1@tnews.web.devx.com> (from peiyoon
<py_loh@unifiedcomms.com>),
>
>
>
> dear sir,
>
> currently i m doing a research on communication between a shell program in
> command prompt with vb.net. i tried to launch my dos cmd command using my
> program in vb.net
> but if i wish to pass some parameter how can i do so???
Here's a couple of examples:
http://groups.google.com/groups?selm...%40tkmsftngp05
http://groups.google.com/groups?selm...40cpmsftngxa07
&oe=UTF-8
(watch for line-breaks)
--
Patrick Steele
Microsoft .NET MVP
http://radio.weblogs.com/0110109
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks