|
-
Oct 10th, 2005, 08:01 AM
#1
Thread Starter
Lively Member
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
-
Oct 10th, 2005, 08:06 AM
#2
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:
process.start(Application.StartupPath & "\myapp.exe")
-
Oct 10th, 2005, 08:58 AM
#3
Frenzied Member
Re: process.start
i think you can use the shell command
VB Code:
shell("c:\stores\application.exe")
i am not 100% sure about the syntax but that should work
rgds
-
Oct 10th, 2005, 09:52 AM
#4
Thread Starter
Lively Member
Re: process.start
 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:
process.start(Application.StartupPath & "\myapp.exe")
thanx 4 ur help. really appreciated
-
Oct 10th, 2005, 09:53 AM
#5
Thread Starter
Lively Member
Re: process.start
 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
-
Nov 3rd, 2005, 05:16 AM
#6
Hyperactive Member
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"
-
Jan 10th, 2006, 06:06 PM
#7
Addicted Member
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
-
Jan 10th, 2006, 08:53 PM
#8
Re: process.start
 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.
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
|
Click Here to Expand Forum to Full Width
|