Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

diskpart commands

Featured Replies

hello friends;

its me again :) i have a problem about diskpart usage in winpe 2.0.

i'm trying to install win xp unattended from UFD by winpe 2.0. My autorun1.cmd and error picture (saying that:the directory is not empty) is as below.

pls can you tell me what is wrong.

partinfo.txt

====================

select disk 1

select volume 0

assign letter=U

select disk 0

clean

create partition primary size=10000

active

assign letter=C

format fs=ntfs label="SYSTEM" quick

create partition primary

assign letter D:

format fs=ntfs label="DATA" quick

exit

====================

post-58042-1227868481_thumb.png

I guess you cannot format a partition unless you select it. :unsure:

http://support.microsoft.com/kb/928543/en-us

http://www.ss64.com/nt/diskpart.html

Maybe you miss lines:

select partition n

Or maybe you still have the first partition "in focus" when you try to create the second, and you need another "select disk 0"....

Rule of the thumb whenever a script does not work is to try the commands in it one by one manually, so that you can see which one throws the error....;)

jaclaz

Edited by jaclaz

  • Author

hello jaclaz :)

as you mentioned i used diskpart command in a virtual machine in at winpe and here is the strange result.

i used the below command in turn and succesfully.

sel disk 0

clean

cre par pri size=10000

active

assign letter= W

it seems that when i wanted to assign letter C it give me error i speak of above (directory is not empty). bu if i assign any other letter except for C, it is assigned succesfully. meanwhile in order to see if letter C is in use or not i use list volume command but C is not in use :( i am confused anybody help me ?

Edited by darksimoon

From the error I see, it seems you're already at a C:\ prompt.

It seems that the problem is that the C letter is already assigned to a drive.

Edited by TheReasonIFail

  • Author

hi TheReasonIFail

i have checked the letters by list volume but it wasnt assigned. just a moment... yes you are right ! i am in C:\ prompt but when i list the volumes i cannot see the letter C. but why ? if C was ram drive i would understand but its not. so can you tell me where the letter C is assigned to ?

It's possible that the drive existed when you navigated to it through the command prompt.

Try changing to another drive letter so you're not at a c:\ prompt and try again.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.