Paraglider BartPE Plugins

Utility To Call ShellExecute API Function

This utility is for use with explorer plugins where the shortcuts are not manually created. It allows an object to be run normal, minimized, maximized or hidden:

Usage:

ShellExecute {-h | -x | -m | -s} <ObjectToRun> {<ObjectParameters>}

  • -h : run the object hidden
  • -x : run the object maximized
  • -m : run the object minimized
  • -s : run as shell

e.g.

[Software.AddReg]
0x2,"Sherpya\XPEinit\Programs",
    "PowerQuest Drive Image\Drive Image 2002 Backup",
    "%SystemDrive%\Programs\ShellExecute\ShellExecute.exe|
     -h %SystemDrive%\Programs\DriveImage2002\di.cmd|
     %SystemDrive%\Programs\DriveImage2002\DriveImageNT.exe"

If you wish to run this program as the shell then this is configured as follows:

[SetupReg.AddReg]
; Use explorer.exe as standalone shell called by XPELogon.exe
0x1,"Setup","CmdLine",
    "\Programs\ShellExecute\ShellExecute.exe /s /h autorun.cmd"

In this example ShellExecute will run the command file autorun.cmd hidden and stay resident for ever also hidden.

The autorun command file should resize your ram and then start explorer:

start /wait AutoRamResizer.exe
start XPELogon.exe
exit