On 4/9/2013 10:19 PM, foxidrive wrote:
> However in Windows 8 this batch file creates a 0 byte list.txt file and the diskpart screen pops up in
> another window momentarily and then disappears. Is this the behaviour for others too?
foxidrive,
I posted in haste without trying your code a second time using
VirtualXP. My results are below.
C:\>check_disk.bat
Microsoft DiskPart version 5.1.3565
Copyright (C) 1999-2003 Microsoft Corporation.
On computer: VIRTUALXP-42799
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 127 GB 0 B
Leaving DiskPart...
Enter the disk number: 0
disk=0
Press any key to continue . . .
===Contents of list.txt===
Microsoft DiskPart version 5.1.3565
Copyright (C) 1999-2003 Microsoft Corporation.
On computer: VIRTUALXP-42799
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 127 GB 0 B
Leaving DiskPart...
Later.