shell.c -> flexbasic
Rsadeika
Posts: 3,837
I am trying to use the shell.c commands in a flexbasic program. Using 'dim shell as class using "shell.p2asm" ' , did not get me anywhere. Is there some secret way of using the commands that are in the shell.c program, short of porting C code into a flexbasic program.
Ray
Comments
Why did you use "shell.p2asm"? Try
dim shell as class using "shell.c"
instead.Below a test program, did not compile.
Ray
Did you look at the code in shell.c? Note that there is indeed no function named "dir". There is one called "do_dir", and it takes a single parameter (the file name of the directory to display, or an empty string for the current directory).
The 'dir' command was simple enough to work with. Not sure how to work with 'parse_cmd' to get at the rest of the commands, via flexbasic.
Thanks
Ray