Saved Bookmarks
| 1. |
Solve : batch scripting? |
|
Answer» File not Found - Goto now it's working That's GOOD... Quote from: rampa on May 21, 2007, 09:01:34 AM Thank you You are very welcome, my friend! hi all, how to find drive size, through Dos command ? Your new question should probably be a new thread. What OS are you running? This should run in Windows XP / 2003 to list the size of all : Code: [Select]@ECHO off setlocal enabledelayedexpansion for /f "delims=" %%a in ('echo list volume ^| diskpart') do ( set line=%%a if "!line:~39,9!"=="Partition" echo Drive !line:~15,1!: is !line:~51,7! in size. )'diskpart' is not recognized as an internal or external command, operable program or batch file.Quote from: rampa on May 23, 2007, 12:31:10 AM 'diskpart' is not recognized as an internal or external command, Code: [Select]Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. c:\>diskpart Microsoft DiskPart version 5.1.3565 Copyright (C) 1999-2003 Microsoft Corporation. On computer: PUPP-C92F25ED23 DISKPART> exit Leaving DiskPart... (for Non NT systems ie NOT Windows 2000, XP, 2003 etc) Code: [Select]chkdsk c: | find "total disk space" i am using windows 2000 Adv. ServerQuote from: rampa on May 23, 2007, 12:38:57 AM i am using windows 2000 Adv. Server What's the DiskPart utility? DiskPart is similar to the MS-DOS Fdisk utility, which lets you create and view partitions from the command line. However, DiskPart does much more than Fdisk. In addition, the DiskPart UI matches the GRAPHICAL interface of the Microsoft Management Console (MMC) Disk Management snap-in. DiskPart is part of the Win2K Server Resource Kit and the Win2K Professional Resource Kit. (Microsoft includes DiskPart as a core utility in Windows Server 2003 and Windows XP.) You can download the tool for free from Microsoft's Web site. http://support.microsoft.com/kb/927229 |
|