Re: Shell or ShellExecute powercfg.cpl doesn't fire




"Ted" <2000@xxxxxxxxxx> wrote in message
news:%23wwjNXdoFHA.3912@xxxxxxxxxxxxxxxxxxxxxxx
>> You should be able to use that same command line with ShellExecute, but I
>> really don't see any reason to do so.
>
> The flashing black screen scares novices :-)
> They will end up asking,"what is the flashing black screen ? Looks like a
> virus"


Huh? I didn't get a "flashing black screen" when I tested that code using
Shell. Not that it matters. If you want to use ShellExecute, use it.


--
Mike
Microsoft MVP Visual Basic


.



Relevant Pages

  • Re: ShellExecute
    ... The redirection operators, are part of the command ... Althought this API function is called "shellexecute" I doubt ... it's sending the command to the CLI; rather, ...
    (borland.public.delphi.nativeapi)
  • Re: send email with shellexecute but crlf in body does not work
    ... like opening up a DOS window and typing a command. ... > I try to send an email with shellexecute in FVP8 on Win2k with Outlook ... > Unfortunately the body text will not show my crlf. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: autorun.inf
    ... shellexecute e.. ... Remarks ... The open command specifies the path and file name of the application that AutoRun launches when a user inserts a disc in the drive. ... verb The verb that corresponds to the command. ...
    (microsoft.public.windowsxp.general)
  • Re: remove non empty direcory
    ... ShellExecute will execute any command you can pass to the Start/Run... ... You'd test whether a directory exists by calling CreateDirectory and ...
    (microsoft.public.vc.language)
  • Re: ShellExecute and copy, delete command
    ... The COPY command is internal to the Command Prompt, ... > ShellExecute to do the file manipulation job? ... Tim Robinson (MVP, Windows SDK) ...
    (microsoft.public.vc.language)