ken2
asked on
invoking other programs
I want to write a program that would invoke other commands on the system (ex: dir (dos) or ls(unix)). Can someone give me a hint on how to get this done? Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> Hi nietod - you're typing fast ;-)
Quit complaining. I was gone for 4 days, you had ample time to make it to the top. : - )
Quit complaining. I was gone for 4 days, you had ample time to make it to the top. : - )
nietod - did i complain <lol> ?
Not at all!!! ;-)
Not at all!!! ;-)
Well, this usually can be done using the 'system()' command.
However, if you specialize on a certain platform (e.g. UN*X, NT, Win9x) there are eventually more sophistcated wayd to do this (NOTE: 'dir' in DOS is a built-in shell command, you'll have to use the command line 'command.com /k dir').