I need some help. I have no experience with C++ but need to figure out how to write a .EXE that can do the following lines from my VBScript.
Set objWShell = CreateObject("WScript.Shell")
objWShell.Run "cmd.exe %systemroot%\system32\diskpart.exe /s %systemroot%\system32\ospart.txt",0,True
objWShell.Run "%systemroot%\System32\InstallOS.hta"
objWShell.Run "cmd.exe %systemroot%\system32\diskpart.exe /s %systemroot%\system32\ospart.txt",0,True
objWShell.Run "%systemroot%\System32\InstallOS.hta"
I need to create a MyShell.exe to call in my WinPE winpesh.ini file with those lines.
Has anyone done such a thing? I've tried four recomended conversion programs and none will run in WinPE 3.0.
Thanks for your help, if I'm asking too much then that is fine too.
Randy



Help

Back to top








