Re: Run Dos Command

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: MadCrazyNewbie (test_at_nospam.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 18:38:12 +0100

Great that worked, but how can I run arguments for the program? I tryed:

Shell("C:\Program Files\Sysmantec\PCAnywhere\Awhost32 LanHost.BHF")

But it doesn`t seem to run my arguments:(

Ta
Si

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:c49lv9$2f2p1o$2@ID-208219.news.uni-berlin.de...
> * "MadCrazyNewbie" <test@nospam.com> scripsit:
> > Do you have any links or code?
>
> Opening a file:
>
> \\\
> Imports System.Diagnostics
>
> .
> .
> .
> Dim psi As New ProcessStartInfo()
> psi.UseShellExecute = True
> psi.FileName = "C:\bla.html"
> Process.Start(psi)
> .
> .
> .
> ///
>
> Starting an application:
>
> If you want to start an application, you can simply call
> 'System.Diagnostics.Process.Start("C:\bla.exe")' or in VB.NET
> 'Shell("C:\bla.exe")'.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Relevant Pages

  • Re: Running an external program
    ... Opening a file: ... Imports System.Diagnostics ... Dim psi As New ProcessStartInfo ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Run Dos Command
    ... Opening a file: ... Imports System.Diagnostics ... Dim psi As New ProcessStartInfo() ...
    (microsoft.public.dotnet.languages.vb)
  • Re: am trying to run some jar files within a .bat file in a .Net environment.
    ... > Dim psi As New ProcessStartInfo() ... I can invoke a simple copy and general dos commands from the .bat file ... > Imports System.Diagnostics ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How can i call IE to open a URL in VB.net
    ... Dim psi As New ProcessStartInfo() ... Opening a webpage in the default browser: ... For startiung the system's default browser with a predefined URL, ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: Process.start class(again)
    ... Imports System.Diagnostics ... Dim psi As New ProcessStartInfo() ... Herfried K. Wagner [MVP] ...
    (microsoft.public.dotnet.languages.vb)