|
-
May 30th, 2007, 01:45 PM
#1
Thread Starter
Hyperactive Member
[2005] Launch executable App from code
plz, hw can i launch notepad.exe or mspaint(or any executable program) from code in .NET
Nobody is smarter than all of us!
-
May 30th, 2007, 01:46 PM
#2
Re: [2005] Launch executable App from code
-
Jun 7th, 2007, 01:56 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] Launch executable App from code
 Originally Posted by Atheist
what if its my own app?will i still use Start('...???")? after i import d required namespace?
Nobody is smarter than all of us!
-
Jun 7th, 2007, 01:58 PM
#4
Hyperactive Member
Re: [2005] Launch executable App from code
Prefix has no suffix, but suffix has a prefix.
-
Jun 7th, 2007, 03:13 PM
#5
Junior Member
Re: [2005] Launch executable App from code
This one is if you want command buttons to start executable files....
vb Code:
Shell ("C:\Program\something\File.exe")
-
Jun 7th, 2007, 03:25 PM
#6
Re: [2005] Launch executable App from code
 Originally Posted by marabon
This one is if you want command buttons to start executable files....
vb Code:
Shell ("C:\Program\something\File.exe")
shell is really only in the language for backwards compatibility from VB6.
I can't think of any valid reason to use SHELL over Process.Start() in .NET
-
Jun 8th, 2007, 03:34 AM
#7
Junior Member
Re: [2005] Launch executable App from code
Ok, but it still works......
-
Jun 8th, 2007, 03:36 AM
#8
Hyperactive Member
Re: [2005] Launch executable App from code
Ok, but it still works......
True, but it may be omitted from future versions.
Prefix has no suffix, but suffix has a prefix.
-
Jun 8th, 2007, 08:36 AM
#9
Re: [2005] Launch executable App from code
 Originally Posted by marabon
Ok, but it still works......
yeah it works, but all it does is launch the specified file and all it gives you in return is the processID.
When you use the process class, you can do things like tell it to redirect its output to a stream in your app (great when executing command line apps), you can track the process to see if its exited, you can kill the process, you can tell it to create no window for the process, you can get the main window handle of the process, etc...
-
Jun 10th, 2007, 12:50 PM
#10
Thread Starter
Hyperactive Member
Re: [2005] Launch executable App from code
plz, whats d difference btw windows command prompt and vs.net/sdk command prompt?can aspnet_regiis b run with Process.start(...) in code to grant asp.net d the required permission account(coz when opening my web app, it says:asp.net blablabla account does not have write access to so so so...But when i added asp.net account to members of Windows administrator account, i don't get dat problem.i did it manually)
Nobody is smarter than all of us!
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
|