Jump to content

Created Disk Part Menu With Options


sayyed.ali1981

Recommended Posts


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.

Link to comment
Share on other sites

startnet.cmd has no codes or script

here is the sample, when u open startnet in notepad its shows winpeint

all the files i putted in system32

here is the code i putted on startnet

winpeint

dispartmenu.cmd

gimagex

but startnet executes winpeint and gimagex but shows error on diskpartmenu.cmd

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...