DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    peiyoon Guest

    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.



  2. #2
    Patrick Steele [MVP] Guest

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links