how to use the MFS shell function directly?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to use the MFS shell function directly?

364 Views
botaoyang
Contributor II

I want to creat a file in a forld in sd card, I think if i can use the shell function( int32_t  Shell_create(int32_t argc, char *argv[] )), that will be very convient for me , but I don't know  how to use these functions.

Labels (1)
0 Kudos
1 Reply

237 Views
DavidS
NXP Employee
NXP Employee

Hi Botao,

It has been long time since I have tried this but here is a code snippet that hopefully helps you.

char_ptr   ARGV[4];

char       CMD_LINE[40]="copy d:\\SPIWeb.shtml c:\\SPIWeb.shtml";

Shell_parse_command_line(CMD_LINE, ARGV);

Shell_copy(3, ARGV);

Regards,

David

0 Kudos