Jump to content

xponard

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Everything posted by xponard

  1. ok, I have found a solution based on the Scr1ptW1zard's answer : http://www.msfn.org/board/Diskpart-question-t108302.html > @echo off REM ===================================== REM Script de partitionnement du disque 0 REM Utilisation sous WinPE2.0/ImageX REM C[12Go]/D[Total-(12+6)]/Z[6Go] REM XP - 01/08 REM ===================================== setlocal enabledelayedexpansion echo list disk>%temp%\listdisk.dp diskpart /s %temp%\listdisk.dp >%temp%\disklist.dat if exist %temp%\mkdisks.dp del %temp%\mkdisks.dp>nul for /f "tokens=1-4 delims= " %%a in ('find /v "###"^<%temp%\disklist.dat^|find " Disk "') do ( If %%b EQU 0 ( set size=%%d if !size! LSS 1024 set /a size=!size!*1024 set /a ddrv=!size!-18432 echo select disk 0 >>%temp%\mkdisks.dp echo clean >>%temp%\mkdisks.dp echo create part pri size=12288 >>%temp%\mkdisks.dp echo select part 1 >>%temp%\mkdisks.dp echo active >>%temp%\mkdisks.dp echo assign letter=c: >>%temp%\mkdisks.dp echo format fs=ntfs label="SYSTEM" quick >>%temp%\mkdisks.dp echo create part pri size=!ddrv! >>%temp%\mkdisks.dp echo select part 2 >>%temp%\mkdisks.dp echo assign letter=d: >>%temp%\mkdisks.dp echo format fs=ntfs label="DATA" quick >>%temp%\mkdisks.dp echo create part pri size=6144 >>%temp%\mkdisks.dp echo select part 3 >>%temp%\mkdisks.dp echo assign letter=z: >>%temp%\mkdisks.dp echo format fs=ntfs label="MSI" quick >>%temp%\mkdisks.dp )) endlocal diskpart /s %temp%\mkdisks.dp Greetings. XP. diskpart_dynamique_valid_xp.cmd
  2. Hello there, I am working with WinPE 2.0 and ImageX over USB Flash Disk trying to deploy HII XP SP2 image over multiple different computers. I want to use a script that perform disk partition/format (using diskpart.exe /s myscript.txt) before deploying the image (imagex.exe /apply ...) I need 3 partitions in this exact order : C: [sYSTEM] 12Go D: [DATA] all_of_free_space Z: [MSI] 6Go I juste want to know how to script this need.? How to calculate automaticaly the all_of_free_space that is = Total Capacity - (12Go+6Go) A simple way might be to create the partitions in this order: C(12)/Z(6)/D(no parameter, so all the free space) but I really would like to get the C/D/Z order... Thanks in advance XP
×
×
  • Create New...