July 19, 201016 yr Is this possible, because I need to run different tasks, from within WinPe, after WinPE has been called from my pxe server?
July 19, 201016 yr No, only one works. However, your .cmd can do any number of things. Perhaps if we knew more about what you were trying to do (and when), perhaps we could help.
July 19, 201016 yr Author No, only one works. However, your .cmd can do any number of things. Perhaps if we knew more about what you were trying to do (and when), perhaps we could help.In my pxe menu, the first option is to call Ghost32 which loads winpe then executes ghost32.exe from the startnet.cmd works great no issues there.Now we have to update some dell bios' and the bios packages must be run from within a winpe environment.Since in my startnet.cmd I am calling ghost32, to start automatically after winpe loads,this has turned into a problem because I would like to have an option from my initial pxe menu, called Bios update, and if it is selected then it loads winpe doesn't load ghost32 but does the bios update.Hence my question about having dual startnet.cmd files, or is there a better way to accomplish this?. I'd rather not have sub menus if not absolutely necessary. Edited July 19, 201016 yr by clivebuckwheat
July 20, 201016 yr That would be pretty easy to do with a menu and an if / then check. Or, write a quick HTA front-end for it and just run that from your startnet.cmd file.
July 20, 201016 yr Author That would be pretty easy to do with a menu and an if / then check. Or, write a quick HTA front-end for it and just run that from your startnet.cmd file.Never heard of HTA front-end before what is this?.
July 20, 201016 yr Linkie . Add HTA support to your WinPE images, and you can run quick and dirty (or pretty) HTAs in your WinPE environment.
July 20, 201016 yr Simplest form, in startnet.cmdCLSEcho "Select: ANd press [RETURN]echo "1. Run Ghost"echo "2. Flash Bios"then create two cmd files in system 32:1.cmd[path]\ghost32.exeand 2.cmdInstert instructions to flash biosMessy but works...Good sample of an HTA menu is here:Could be easilyu adapted. Edited July 20, 201016 yr by gadget
July 23, 201016 yr What else can we do with HTAs? Does have any functionality that makes it similiar to running cmd or bat?Another question is which is more powerful and overall better to use in WinPE Environment? Edited July 23, 201016 yr by Eagle710
July 26, 201016 yr Basically anything you can do with ASP and Flash you can do with HTA. HTA is basically ASP (HTML + VBScript) so possibilities are endless. You can read from WMI, access network resources and more. I have tested Flash Projector apps and they work, but I actually use AutoIT for advanced scripting and have the HTA launch those programs.
July 30, 201016 yr Would CMD ot BAT be the prefered method of to use in WinPE?Either works but cmd is the preferred MS way of thinking.
Create an account or sign in to comment