ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Text file to list correct drive free-space under XP

(1/2) > >>

TWmailrec:
 ;)
If you create a DOS BATCH prog to automate Backup/ZIP, DOS wrongly
reports free space on a named partition under XP.
It would be useful to have a program to create a text file (for display in a DOS Batch prog) showing accurate free space (GB) on a named partition.
My searches havent revealed an existing program that does this accurately under XP.
(DOS progs I have are written for WIN98/95/WIN3.1)

Can anyone help!

wr975:
There's no DOS in XP but some tools still work. You can try XSet to enhance your command scripts.


--- ----disks-----------------------------------------------------------------------
-----------------------------------------------------------------------------
DISKFREE   Free disk space          DiskFree    C:             16939008
DISKFREEK  Free disk space K        DiskFreeK   C:                16542
DISKFREEM  Free disk space M        DiskFreeM   C:                   16
DISKSIZE   Disk size                DiskSize    C:             33419264
DISKSIZEK  Disk size                DiskSizeK   C:                32636
DISKSIZEM  Disk size                DiskSizeM   C:                   31
-----------------------------------------------------------------------------

You could also move on and use Authotkey or Autoit for your scripts.

jgpaiva:
You could also move on and use Authotkey or Autoit for your scripts.
-wr975 (March 06, 2006, 02:10 PM)
--- End quote ---
Agreed  :Thmbsup: :Thmbsup:

But still, could you be more precise on what you're looking for, TWmailrec?

sinum:
Why dont use 4NT from http://www.jpsoftware.com/  works 100%.
They have an old Version ( 4DOS ) for free. 90% on XP i think.

skrommel:
 :) Can you work with this?

Skrommel



--- ---;FindFree.ahk
; Writes free drive space to a text file.
; To run, download and install AutoHotkey from www.autohotkey.com
;Skrommel @2006

outfile=C:\Temp\out.txt

SetBatchLines,-1
FileDelete,%outfile%
drive:=Asc("A")
Loop,% Asc("Z")-Asc("A")
{
  drivechar:=Chr(drive)
  DriveSpaceFree,space,%drivechar%:
  FileAppend,%drivechar%: %space%`n,%outfile%
  drive+=1
}

Navigation

[0] Message Index

[#] Next page

Go to full version