MSFN Forum: Created Disk Part Menu With Options - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Created Disk Part Menu With Options Created Disk Part Menu With Options Rate Topic: -----

#1 User is offline   sayyed.ali1981 

  • Advance User
  • Group: Members
  • Posts: 20
  • Joined: 18-April 09
  • OS:Windows 7 x86
  • Country: Country Flag

  Posted 15 August 2009 - 08:53 AM

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

Attached File(s)

  • Attached File  Disk.rar (1.96K)
    Number of downloads: 42



#2 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 192
  • Joined: 02-January 04

Posted 16 August 2009 - 03:11 AM

I would rename diskpart.bat to .cmd and do not call the batch file the same as the executable.

#3 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 6,988
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 16 August 2009 - 01:36 PM

View Postsayyed.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.

#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,118
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 16 August 2009 - 02:27 PM

IF's not really necessary here is it?
IF '%x%' == '%x%'


#5 User is offline   sayyed.ali1981 

  • Advance User
  • Group: Members
  • Posts: 20
  • Joined: 18-April 09
  • OS:Windows 7 x86
  • Country: Country Flag

  Posted 20 August 2009 - 02:14 AM

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

#6 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 6,988
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 20 August 2009 - 07:51 AM

Use the fully qualified paths to gimagex and your CMD file.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy