jbrush115 Posted December 19, 2013 Author Share Posted December 19, 2013 (edited) Well I feel a little dumb now for giving you a little wrong information but here it is. my other post I saidOnce I get the JavaScript error message I can close the error message and the malfunctioning program and type in "bin\sccui.exe" at the CMD and it will work fineIt seems I was wrong. I was actually typing what is in the last quote I posted not the above quote. Sorry I have noticed that if it looks like this at the Command prompt then I get the JavaScript error messageX:\windows\system32>wpeinitX:\windows\system32>bin\sccui.exeBut if it looks like this then it will will work everytime with no error messageX:\windows\system32>wpeinitX:\windows\system32> cd binX:\windows\system32\bin>sccui.exeSorry about that. maybe this will help solve the problem I am having. I don't understand what the difference is whether I "CD" into the directory or just type the whole commandthanks Edited December 19, 2013 by jbrush115 Link to comment Share on other sites More sharing options...
jaclaz Posted December 19, 2013 Share Posted December 19, 2013 There has been a misunderstanding actually more than one, and possibly a couple of mistakes in the posted batch.Let's start from scratch, OKCheck that the test.cmd is in the directory X:\windows\system32\bin\ i.e. %systemroot%\system32\bin\ and that it has these contents:@ECHO OFFSETLOCAL ENABLEEXTENSIONSECHO Test.cmdECHO %~dp0ECHO Changing directory ...CD /D %~dp0CD ..ECHO Now executing %~dp0sccui.exePAUSEsccui.exeWhen you are prompted to "Press any key", press CTRL+C instead to stop the batch.Are you having a console with prompt:X:\windows\system32\bin>Yes or No?IF you have it as above, and type in it:sccui.exeand press [ENTER]what happens?jaclaz Link to comment Share on other sites More sharing options...
jbrush115 Posted December 19, 2013 Author Share Posted December 19, 2013 Yes the test.cmd is in the correct location and looks exactly like yours. This is my command promptx:\windows\system32>wpeinitX:\windows\system32>cmd.exe /k X:\windows\system32\bin\test.cmdTest.cmdX:\windows\system32\bin\Changing directory . . .now executing X:\windows\system32\bin\sccui.exePress any key to continue . . .terminate batch job <Y/N> yX:\windows\system32>_I am not getting what you want me to get unfortunately Link to comment Share on other sites More sharing options...
jaclaz Posted December 19, 2013 Share Posted December 19, 2013 (edited) Good.Now remove from test.cmd the "CD .." line.@ECHO OFFSETLOCAL ENABLEEXTENSIONSECHO Test.cmdECHO %~dp0ECHO Changing directory ...CD /D %~dp0ECHO Now executing %~dp0sccui.exePAUSEsccui.exeAnd now what happens if you press the CTRL+C and what happens if instead you do "press the any key"?jaclaz Edited December 19, 2013 by jaclaz Link to comment Share on other sites More sharing options...
jbrush115 Posted December 19, 2013 Author Share Posted December 19, 2013 When I CTRL + C I get the same thing I was getting before in the last quote I postedWhen I "press the any key" the program runs correctly One step closer it seems.thanks Link to comment Share on other sites More sharing options...
jaclaz Posted December 19, 2013 Share Posted December 19, 2013 (edited) Good, now we have seemingly the confirmation that that stupid program needs to be launched once having changed dir to it's directory (which means that some of the needed files to execute it are in that directory).So, change the test.cmd to:@ECHO OFFSETLOCAL ENABLEEXTENSIONSCD /D %~dp0sccui.exeand it should work. If it does, try using in startnet:START "Mycmd" /D "%systemroot%\System32\bin" /W "%systemroot%\System32\bin\sccui.exe" jaclaz Edited December 19, 2013 by jaclaz Link to comment Share on other sites More sharing options...
jbrush115 Posted December 19, 2013 Author Share Posted December 19, 2013 I will try it In a couple hoursthanks Link to comment Share on other sites More sharing options...
jbrush115 Posted December 19, 2013 Author Share Posted December 19, 2013 (edited) Ok I couldn't resist I had to try it. After dozens of reformats on the flash drive and reloading of Windows PE..... it works perfectly. thank you very much for your help. Its such a pain in the butt having to mount the .WIM and then change the files and then unmount and then convert to .ISO and then Copy to bootable flash drive. Its not hard just time consuming.Thanks again for your help Edited December 19, 2013 by jbrush115 Link to comment Share on other sites More sharing options...
jaclaz Posted December 19, 2013 Share Posted December 19, 2013 Ok I couldn't resist I had to try it.Sure, no toon can resist .... http://www.imdb.com/title/tt0096438/quotes?item=qt0406091 jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now