Run the UEFI shell command from the UEFI application

I am new to UEFI application development.

My requirement is that

I need to run the UEFI shell command from my UEFI application source code ( app.efi ). It is necessary to be guided by how I can do this.

Example

cp command in the UEFI shell is used to copy a file from one path to another. I want to do this programmatically inside my application ( app.efi ).

EDIT: I'm looking for something similar to the system("command"); function system("command"); on Linux .

How to do it?

+6
source share
1 answer

Are you looking for something inline or can you use nshell? This is a standalone application, but it can run a copy for you. https://software.intel.com/en-us/articles/uefi-shell Note that the command syntax is not identical to bash.

+1
source

All Articles