Results 1 to 2 of 2

Thread: Process.start problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    77

    Process.start problem

    I would like to call a .NET executable file in a windows service at certain intervals of time. The following is the code snippet, I put in. I am not receiving any error in my error handling routine (as it writes as a log entry). But my problem is, the respective application doesn't popup on screen and get visible. I desperately need the application to be visible when it does some work (just to know basically the status and progress of the process it is doing). I copied calc.exe into the root to test it. But I didn't test with anything else. Can anybody help me please.

    'first method
    'Dim proc As Process = Process.Start("c:\calc.exe")

    'second method
    'Dim startInfo As New ProcessStartInfo("c:\calc.exe")
    'startInfo.CreateNoWindow = False
    'startInfo.WindowStyle = ProcessWindowStyle.Normal
    'Process.Start(startInfo)

    'third method
    'Shell("c:\calc.exe"), AppWinStyle.NormalFocus, False)

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    Running file and ascription to specific program

    Running program *.exe
    Or any kind of file that the system recognized
    Code:
    System.Diagnostics.Process.Start("MyPath\MyFile")
    Running program *.exe
    Or any kind of file that the system unrecognized
    Code:
    System.Diagnostics.Process.Start("MyPath\MyFile","MyPath\MyFile")
    Watch and copy examples of Source Code in VB.NET
    [email protected]
    http://www.geocities.com/yulyos4vbnet

    Have a nice day

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width