From: GN Keshava <keshava.gn@gmail.com>
To: Michael Zimmermann <sigmaepsilon92@gmail.com>
Cc: Laszlo Ersek <lersek@redhat.com>, edk2-devel-01 <edk2-devel@ml01.01.org>
Subject: Re: Format a volume in UEFI (or delete all files)
Date: Thu, 13 Oct 2016 06:26:53 +0000 [thread overview]
Message-ID: <CABKwMdu3n5CyRZ=EzAB2x77BpwPtHLSXcsNE0b0mLtdCHph6yw@mail.gmail.com> (raw)
In-Reply-To: <CAN9vWDKD0UALXKan9uoo22XF3gimfxUTSssk5NACGc6KM4C2eA@mail.gmail.com>
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 <sigmaepsilon92@gmail.com>
wrote:
> > 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 Status;
> EFI_STATUS CommandStatus;
> Status = ShellExecute (&gImageHandle, L"memmap", FALSE, NULL,
> &CommandStatus);
>
> If you were not started by the Shell you can run a new Shell and tell it
> to run your command and exit afterwards using these LoadImage arguments:
>
> -nomap -nostartup -noversion -_exit [CMD OR FILE]
>
> Thanks
> Michael
>
> On Thu, Oct 13, 2016 at 3:29 AM, GN Keshava <keshava.gn@gmail.com> 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?
>
> Thanks again.
> Regards,
> Keshava
>
>
> On Wed 12 Oct, 2016 11:10 pm Laszlo Ersek, <lersek@redhat.com> wrote:
>
> > 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 you
> > look at RM (LS should be unnecessary); RM already contains the recursion.
> >
> > Laszlo
> >
> >
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
>
>
>
next prev parent reply other threads:[~2016-10-13 6:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 10:48 Format a volume in UEFI (or delete all files) GN Keshava
2016-10-12 14:31 ` Laszlo Ersek
2016-10-12 17:23 ` Blibbet
2016-10-12 17:34 ` GN Keshava
2016-10-12 17:40 ` Laszlo Ersek
2016-10-13 1:29 ` GN Keshava
2016-10-13 6:20 ` Michael Zimmermann
2016-10-13 6:26 ` GN Keshava [this message]
2016-10-13 8:33 ` Laszlo Ersek
2016-10-13 8:48 ` GN Keshava
2016-10-12 17:41 ` Blibbet
2016-10-12 17:46 ` Richardson, Brian
2016-10-12 17:55 ` Michael Zimmermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABKwMdu3n5CyRZ=EzAB2x77BpwPtHLSXcsNE0b0mLtdCHph6yw@mail.gmail.com' \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox