Link to home
Start Free TrialLog in
Avatar of ken2
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
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jkr
Hi nietod - you're typing fast ;-)
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').
Avatar of nietod
nietod

>> Hi nietod - you're typing fast ;-)
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!!! ;-)