flat assembler
Message board for the users of flat assembler.

Index > DOS > hmmm... How to run another program from an Assembler program

Author
Thread Post new topic Reply to topic
peter_rk



Joined: 17 Apr 2005
Posts: 13
Location: somewhere in the world?
peter_rk 17 Apr 2005, 00:38
I've been using QuickBasic for a few years, and whenever I wanted to shell to another program, I used

shell "programname" .

I've looked for an equal set of instructions in Assembly Language, but I have had no luck so far.

_________________
[insert witty remark here]
Post 17 Apr 2005, 00:38
View user's profile Send private message Visit poster's website Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon 17 Apr 2005, 03:56
ShellExecute

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp

derived from shell32.dll

HINSTANCE ShellExecute( HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
Post 17 Apr 2005, 03:56
View user's profile Send private message Visit poster's website Reply with quote
peter_rk



Joined: 17 Apr 2005
Posts: 13
Location: somewhere in the world?
peter_rk 17 Apr 2005, 12:57
Is there a DOS function that will do the same? Part of int 21h maybe?

_________________
[insert witty remark here]
Post 17 Apr 2005, 12:57
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 17 Apr 2005, 13:25
Post 17 Apr 2005, 13:25
View user's profile Send private message Visit poster's website Reply with quote
peter_rk



Joined: 17 Apr 2005
Posts: 13
Location: somewhere in the world?
peter_rk 17 Apr 2005, 19:51
Many thanks!

_________________
[insert witty remark here]
Post 17 Apr 2005, 19:51
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.