sayyed.ali1981, on Aug 15 2009, 10:53 AM, said:
hi
guys
i have created a diskpart cmd menu which have options and its create partition automatically
download the attachment below, i need help startnet.cmd cannot execute my diskpart.cmd its shows not an internal or external command
Post 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. *******************************
:start
echo.
echo 1. 10 Gb Partition
echo.
echo.
set /p x=Pick:
IF '%x%' == '%x%' GOTO Item_%x%
:Item_1
start /MIN /Dx:\Windows\System32\diskpart.exe /s x:\windows\system32\disk10.txt
GOTO Start
You 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.