Results 1 to 8 of 8

Thread: process.start

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    115

    process.start

    hi,
    apart from using process.start, how else can i start an app from within my app? also, is there a way that i can use a relative path as in html, like ...
    vbcode'
    process.start("/myapp.exe")
    vbcode.
    lastly, how do i start an app from within my windows service. the app is suppose to appear on the screen at specific times; hence the service calling them when their time is due.
    thanx

  2. #2
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: process.start

    process.start may be the only way, if not the best way.

    to open something relative to your app, do this
    VB Code:
    1. process.start(Application.StartupPath & "\myapp.exe")

  3. #3
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: process.start

    i think you can use the shell command

    VB Code:
    1. shell("c:\stores\application.exe")

    i am not 100% sure about the syntax but that should work

    rgds

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    115

    Re: process.start

    Quote Originally Posted by Phill64
    process.start may be the only way, if not the best way.

    to open something relative to your app, do this
    VB Code:
    1. process.start(Application.StartupPath & "\myapp.exe")
    thanx 4 ur help. really appreciated

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    115

    Re: process.start

    Quote Originally Posted by swapo
    hi,
    ...lastly, how do i start an app from within my windows service. the app is suppose to appear on the screen at specific times; hence the service calling them when their time is due.
    thanx
    help here will be very much appreciated

  6. #6
    Hyperactive Member LeeSalter's Avatar
    Join Date
    Oct 2002
    Location
    Notts, England
    Posts
    307

    Re: process.start

    Did you get this probem sorted, Swappo?

    I need to do the exact same thing.

    I've got an .exe that does a quick SQL query, sends the results in an Outlook email and then exits.

    I can run the .exe and it works perfectly.
    I cannot port this code into the Start event of my service because Outlook is not designed to run under a service accout.

    I thought that if I simply did a Process.Start("my.exe") into the Start event of my service it would work, but oh no!!

    Does anybody have any ideas?
    "I'm Brian and so is my Wife"

  7. #7
    Addicted Member
    Join Date
    Nov 2005
    Posts
    200

    Re: process.start

    here is the scenario which I have :
    I have an external App open using the shell command but I notice that this particular App has a textbox which I want to automatically copy my data into. How do I do this?

    the data which I want to copy is located in a textbox in my main project, but I want my program to automatically copy and paste the data even before the exernal App opens.

    Please guide me towards the right direction.
    thanks

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: process.start

    Quote Originally Posted by Srig007
    here is the scenario which I have :
    I have an external App open using the shell command but I notice that this particular App has a textbox which I want to automatically copy my data into. How do I do this?

    the data which I want to copy is located in a textbox in my main project, but I want my program to automatically copy and paste the data even before the exernal App opens.

    Please guide me towards the right direction.
    thanks
    You should start a new thread for this question.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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