sayyed.ali1981 Posted August 15, 2009 Share Posted August 15, 2009 higuys i have created a diskpart cmd menu which have options and its create partition automaticallydownload the attachment below, i need help startnet.cmd cannot execute my diskpart.cmd its shows not an internal or external commandDisk.rar Link to comment Share on other sites More sharing options...
gadget Posted August 16, 2009 Share Posted August 16, 2009 I would rename diskpart.bat to .cmd and do not call the batch file the same as the executable. Link to comment Share on other sites More sharing options...
Tripredacus Posted August 16, 2009 Share Posted August 16, 2009 higuys i have created a diskpart cmd menu which have options and its create partition automaticallydownload the attachment below, i need help startnet.cmd cannot execute my diskpart.cmd its shows not an internal or external commandPost your startnet.cmd code to start. And also what Win PE version you are using (or what WAIK/OPK Tools it was created from) and also what architecture it is.Also, your batch files all use relative paths, but you should hardcode those. You can also have only 1 batch file to do all this and no txt files at all. But you can learn about variables and such later. You can totally get rid of the drive specific CMD files with this example:ECHO. *******************************:startecho.echo 1. 10 Gb Partitionecho.echo.set /p x=Pick:IF '%x%' == '%x%' GOTO Item_%x%:Item_1start /MIN /Dx:\Windows\System32\diskpart.exe /s x:\windows\system32\disk10.txtGOTO StartYou see above I specify that disk10.txt is in System32. Your batch file should be there also. Use abolute paths in your batch file and startnet.cmd to see if it can then launch it. Link to comment Share on other sites More sharing options...
Yzöwl Posted August 16, 2009 Share Posted August 16, 2009 IF's not really necessary here is it?IF '%x%' == '%x%' Link to comment Share on other sites More sharing options...
sayyed.ali1981 Posted August 20, 2009 Author Share Posted August 20, 2009 startnet.cmd has no codes or scripthere is the sample, when u open startnet in notepad its shows winpeintall the files i putted in system32here is the code i putted on startnetwinpeintdispartmenu.cmdgimagexbut startnet executes winpeint and gimagex but shows error on diskpartmenu.cmd Link to comment Share on other sites More sharing options...
Tripredacus Posted August 20, 2009 Share Posted August 20, 2009 Use the fully qualified paths to gimagex and your CMD file. 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