Login | |
|
 |
RE: Batch File Question - 6/19/2006 12:19:51 AM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
I tried this. It gave me an error that it could not be run in DOS. Can it step through all partitions and delete them @ECHO OFF IF EXIST "A:\FORMAT.TXT" GOTO FORMAT IF NOT EXIST "A:\FORMAT.TXT" GOTO FDISK :FDISK Diskpart /s A:\DiskpartFormat.txt GOTO REBOOT :REBOOT FDISK /REBOOT :FORMAT ECHO Formatting drive ... FORMAT C: /AUTOTEST /S DEL A:\FORMAT.TXT GOTO END :END CLS ECHO FINISHED FDISK AND FORMAT NOTE: My DiskpartFormat.txt is what you posted.
|
|
| |
|
|
|
 |
RE: Batch File Question - 6/19/2006 10:36:14 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
FDisk <> Diskpart. Diskpart is, essentially, a 32bit version of FDisk. I had thought you were looking at switching from FDisk to DiskPart. As far as I know, you can not run diskpart in DOS.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Batch File Question - 6/19/2006 10:49:19 PM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
There used to be a third party app called diskpart that I used on NT4 that was dos based. I think there might be one on Hirens Boot CD. I will have a look and see what I can find. I tried free Fdisk but, still need to see if its got command line switches. Thanks for the help
|
|
| |
|
|
|
 |
RE: Batch File Question - 6/20/2006 6:43:22 AM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Ahh, wasn't aware of the 3rd party app. The Diskpart I use came from MS, with 2000/XP
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Batch File Question - 7/21/2006 1:11:22 AM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
My mistake its Delpart
|
|
| |
|
|
|
|
|