Computing.Net > Forums > Programming > Run a .exe file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Run a .exe file

Reply to Message Icon

Name: Visual basic
Date: August 21, 2002 at 01:58:52 Pacific
Comment:

I wish to run an executable file from my Visual Basic Application.Please if you have an Ideal,please help me out I would be Grateful.
I did some thing like this but it does not work
Shell ("Pathname",vbhide)as double



Sponsored Link
Ads by Google

Response Number 1
Name: Jim
Date: August 21, 2002 at 07:35:23 Pacific
Reply:

The Win32 API is CreateProcess().

Go Here for info from Microsoft.


0

Response Number 2
Name: Pushpinder
Date: August 23, 2002 at 14:38:09 Pacific
Reply:

u can use function called shell(). pass EXE name as parameter


1

Response Number 3
Name: Robert Starr
Date: August 28, 2002 at 19:38:31 Pacific
Reply:

Since the shell function is a function which returns the process ID of the executable, it seems to work only if you assign the function's return to a variable:

mydummyvariable = shell("pathname",otherargsthatidon'tremember)

Just don't use the variable if you don't want to (this works on .exe/.bat/maybe .com files).

.NET will work without the variable assignment, but not VB5 (and I assume VB6, though I've never used it).


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Run a .exe file

Running a .exe, but the exe is a batch file.. www.computing.net/answers/programming/running-a-exe-but-the-exe-is-a-batch-file/19573.html

How to run a batch file on another www.computing.net/answers/programming/how-to-run-a-batch-file-on-another-/15653.html

decoding a exe file www.computing.net/answers/programming/decoding-a-exe-file/14492.html