diskspace

GetDiskFreeSpaceEx with compressed disk

I want to get the free space on a compressed disk to show it to a end user. I'm using C++, MFC on Windows 2000 and later. The Windows API offers the GetDiskFreeSpaceEx() function. However, this function seems to return the "uncompressed" sized of the data. This cause me some problem. For example : - Disk size is 100 GB - Data size is...

table size not reducing after purged table

I recently perform a purging on my application table. total record of 1.1 millions with the disk space used 11.12GB. I had deleted 860k records and remain 290k records, but why my space used only drop to 11.09GB? I monitor the detail on report - disk usage - disk space used by data files - space used. Is it that i need to perfrom sh...

SQL 2005: Disk space taken by dropped columns

I have a big table in SQL Server 2005 that's taking about 3.5 GB of space (according to sp_spaceused). It has 10 million records, and several indexes. I just dropped a bunch of columns from it, such that the record length got reduced to a half, and to my surprise it took zero time to do that. Obviously, sp_spaceused was still reporting ...

How can I check free space during a NullSoft silent install?

In silent install mode the user is not asked about the installation target with the PageEx directory, and therefore the functions DirVerify and GetInstDirError are never called. This is also applicable to installs that hardcode the installation target (a bad idea) for the same reason as above: the PageEx directory is never invoked. ...

How to find how much disk space is left using Java?

How to find how much disk space is left using Java? ...

Java : how to determine disk space on Windows system prior to Java 1.6

I want to determine the available disk space on windows. I don't care that my code is not portable. I use this : String[] command = {"dir",drive}; Process process = Runtime.getRuntime().exec(command); InputStream result = process.getInputStream(); aiming to parse the result from a "dir C:" type of call, but the String I get from the c...

Get current CPU, RAM and Disk drive usage in C#

How to get the CPU, RAM and Disk drive usage of the system in C# code? ...

bash: Measure disk space of certain file types in aggregate

I have some files across several folders: /home/d/folder1/a.txt /home/d/folder1/b.txt /home/d/folder1/c.mov /home/d/folder2/a.txt /home/d/folder2/d.mov /home/d/folder2/folder3/f.txt How can I measure the grand total amount of disk space taken up by all the .txt files in /home/d/? I know du will give me the total space of a given fold...

postgreSQL vacuum temp files?

Hey, I've got a "little" problem. A week ago my database was reaching full disk capasity. I deleted many rows in different tables trying to free up disk space. After wich i tried running a full vacuum wich did not complete. What i want to know is. When i stopped the vacuum from fully compliting does it leave any temp files on the disk...

c# - Get free disk space

Possible Duplicate: how to get disk information by using c#? Given each of the inputs below, I'd like to get free space on that location. Something like long GetFreeSpace(string path) Inputs: c: c:\ c:\temp \\server \\server\C\storage ...

About keeping track of disk space in web server

Hi. May I ask is there any recommended tools for keeping track of the disk usage on a web server? And is there any special things that I may need to consider for choosing a tool for monitoring disk usage on a server? THanks ...

How can I check for available disk space?

I need a way to check available disk space on a remote Windows server before copying files to that server. Using this method I can check to see if the primary server is full and if it is, then I'll copy the files to a secondary server. How can I check for available disk space using C#/ASP.net 2.0? ...

How does the compression file attribute impact performance on a file save in windows?

QUESTION: If I set the compression attribute on a directory on a windows server, how does that effect file saving performance? WHY I WANT TO KNOW: I have a server that several batch processes save huge files on, and these are mostly Txt or CSV files that I'd like to compress to save disk space. If it does compression on the fly as i...

Find out if there is enough disk space to install in a shared folder

I need to be able to install a program in a shared folder on a computer in LAN. First i must find out which folders are shared on a computer, and then check if there is enough disk space for installation to proceed. Here is my method. public static void FindShares() { try { ConnectionOptions options = n...

Any way to keep curl's cookies in memory and not on disk

I'm doing some cURL work in php 5.3.0. I'm wondering if there is any way to tell the curl handle/object to keep the cookies in memory (assuming I'm reusing the same handle for multiple requests), or to somehow return them and let me pass them back when making a new handle. Theres this long accepted method for getting them in/out of the...

TFS Branching and Disk Space

I've been thinking over some branching strategies (creating branches per feature, maybe per developer since we're a small group) and was wondering if anyone had experienced any issues. Does creating a branch take up much space? ...

Android and data storage space?

Hi Im wondering how much data storage is available for my application in android? I need to cache lots of files, and i was thinking to store it inside the sharedpreferences, this way it gets deleted if the application is uninstalled. Afterall its just alot of cache files. I guess i could also use the SDCard, but than i dont have any co...

Finding out total and free disk space in .NET

I am trying to find a way to determine the total and available disk space in an arbitrary folder from a .NET app. By "total disk space" and "available disk space" in a folder I refer to the total and available disk space that this folder would report if you performed a "dir" command on it, that is, the total and available disk space of t...

how much server space do I need for a subversion repository?

I'm going to be getting some server space of arbitrary size, and be given ssh access to it to set up a subversion repository. But, I have no idea how much space to ask for. For now, it's going to host my cms project so that my colleague can contribute to the code as well. But if it gets anywhere, we hope to expand on the system, possibl...

Which data structure should I use for storing hash values?

I have a hash table that I want to store to disk. The list looks like this: <16-byte key > <1-byte result> a7b4903def8764941bac7485d97e4f76 04 b859de04f2f2ff76496879bda875aecf 03 etc... There are 1-5 million entries. Currently I'm just storing them in one file, 17-bytes per entry times the number of entries. That ...