Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-13 Thread GN Keshava
Got it. Thanks for the help, Laszlo. Regards, Keshava On Thu, 13 Oct 2016 at 14:03 Laszlo Ersek wrote: > On 10/13/16 03:29, GN Keshava wrote: > > Thanks Laszlo. > > > > Is it possible to run RM (or any shell command) from my C application > > code? Something like "System()" in Linux? Whether we

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-13 Thread Laszlo Ersek
On 10/13/16 03:29, GN Keshava wrote: > Thanks Laszlo. > > Is it possible to run RM (or any shell command) from my C application > code? Something like "System()" in Linux? Whether we can use LoadImage > for this purpose? Can't say for sure; I'd opt for a separate implementation. Thanks Laszlo >

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Thanks for the help, Michael.. Yes, I'm running the app from shell (at least for now).. I will try your suggestion. Thanks again. Regards, Keshava On Thu, 13 Oct 2016 at 11:50 Michael Zimmermann wrote: > > Is it possible to run RM (or any shell command) from my C application > code? > > Somethi

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Michael Zimmermann
> Is it possible to run RM (or any shell command) from my C application code? > Something like "System()" in Linux? Whether we can use LoadImage for this > purpose? If you application was started from the Shell you can do that using ShellExecute from 'Library/ShellLib.h'. Example: EFI_STATUS Statu

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Thanks Laszlo. Is it possible to run RM (or any shell command) from my C application code? Something like "System()" in Linux? Whether we can use LoadImage for this purpose? Thanks again. Regards, Keshava On Wed 12 Oct, 2016 11:10 pm Laszlo Ersek, wrote: > On 10/12/16 19:34, GN Keshava wrote:

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Michael Zimmermann
.com/ > bio/Brian_Richardson_ > > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > Blibbet > Sent: Wednesday, October 12, 2016 1:42 PM > To: edk2-devel@lists.01.org > Subject: Re: [edk2] Format a volume in UEFI (or delete

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Richardson, Brian
[mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Blibbet Sent: Wednesday, October 12, 2016 1:42 PM To: edk2-devel@lists.01.org Subject: Re: [edk2] Format a volume in UEFI (or delete all files) On 10/12/2016 10:34 AM, GN Keshava wrote: > Thanks Laszlo, I'll check it out. > > I think I n

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Blibbet
On 10/12/2016 10:34 AM, GN Keshava wrote: > Thanks Laszlo, I'll check it out. > > I think I need to combine the LS implementation and RM implementation, > isn't it? So there is no "format this volume" function or command exists, > right? The commands do exist. But they're not in Tianocore, and h

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Laszlo Ersek
On 10/12/16 19:34, GN Keshava wrote: > Thanks Laszlo, I'll check it out. > > I think I need to combine the LS implementation and RM implementation, > isn't it? So there is no "format this volume" function or command > exists, right? I'm unaware of any "format" command. And, I think it's enough if

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Thanks Laszlo, I'll check it out. I think I need to combine the LS implementation and RM implementation, isn't it? So there is no "format this volume" function or command exists, right? Thanks again! Regards, Keshava On Wed 12 Oct, 2016 8:01 pm Laszlo Ersek, wrote: > On 10/12/16 12:48, GN Kesh

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Blibbet
On 10/12/2016 07:31 AM, Laszlo Ersek wrote: > On 10/12/16 12:48, GN Keshava wrote: >> Hi all, >> >> I need to format fs1: (or delete all files and folders in root directory) >> from my UEFI application. >> >> I'm able to use file system APIs such as Open, Write or Delete too. But >> Delete API nee

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread Laszlo Ersek
On 10/12/16 12:48, GN Keshava wrote: > Hi all, > > I need to format fs1: (or delete all files and folders in root directory) > from my UEFI application. > > I'm able to use file system APIs such as Open, Write or Delete too. But > Delete API needs File (file path) as argument, but what I want is

[edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Hi all, I need to format fs1: (or delete all files and folders in root directory) from my UEFI application. I'm able to use file system APIs such as Open, Write or Delete too. But Delete API needs File (file path) as argument, but what I want is delete all files (irrespective of file name). What