ntfs

Files Changed Since

Short of recursing and comparing dates of files/directories, is there a better way of getting a list of all files and directories that have been changed on an NTFS drive since a particular date? ...

CMS vs Filesystem storage id scalability

Hi, Please consider the following: I am storing around 1.2 Million TIF files ranging from 40 KB to 120 KB in size. These documents are stored on a windows server with NTFS file-system. The documents are stored using the following variables: client document type image folder actual image See below: C:\<client_id>\<doc_type_id>\i...

In .NET, how do I Create a Junction in NTFS, as opposed to a Symlink?

I'm trying to create an NTFS Junction. From the cmd line I can do this using the junction.exe tool from sysinternals. The output of a DIR cmd for a junction looks like this: Volume in drive C has no label. Volume Serial Number is C8BC-2EBD Directory of c:\users\cheeso\Documents 03/22/2009 09:45 PM <JUNCTION> My Music [\?...

Any real-world, enterprise-grade experience with Transactional NTFS (TxF)?

Background: I am aware of this SO question about Transactional NTFS (TxF) and this article describing how to use it, but I am looking for real-world experience with a reasonably high-volume enterprise system where lots of blob data (say documents and/or photos) need to be persisted once transactionally and read many times. We are expe...

Writing a file backup utility in C#...

--BEGIN RANT-- ALL I want to do is copy the "Documents and Settings" folder to back it up in Windows Server 2003, so we can grab old files from it, as needed, easily, after I wipe the server to upgrade the OS to Windows Server 2008. BUT, I get errors about NTUSER being in use, etc., when I try to copy it. It's VERY irritating that an ad...

How to determine allocated blocks on an NTFS disk

Is there a way of determining which clusters on an NTFS disk are allocated? I'm thinking along the lines of the display you see on a defrag program before you kick off the defrag itself. I guess you could parse the MFT but it strikes me that this could take a long time on a system with potentially hundreds of thousands of files. Thanks...

There is in Windows file systems a pre computed hash for each file?

I want to search a file duplicate by its hash. For performance purposes I want to know if there is a stored hash/checksum for each file in NTFS/FAT file systems. If there is, I don't have to compute them all to search my file. If there is, how to access it using .NET? If it helps, it will be JPEG files. Do they have a checksum? ...

Auditing Windows Server 2003 folders.

Is there a way to log which Active Directory authenticated user modified a particular folder's contents in Windows Server 2003 environment? ...

how can I get the set of open handles for all processes

I would like to know if a file is open by any process (including the caller) There are a number of suggestions already posted, which tend to revolve around trying to open the file exclusively and catching the exception. This has not proven to be a fool-proof method in my instance. I beleive in my specific situation I can get by with s...

What can be the reason for Windows error ERROR_DISK_FULL (112) when opening a NTFS alternate data stream?

My application writes some bytes of data to an alternate data stream. This works fine on all but one machine (Windows Server 2003 SP2). Instead, CreateFile returns ERROR_DISK_FULL when I try to create an alternate data stream (on the root directory). I don't find the reason for this result, because... There's plenty of space on that d...

How to determine whether a file is encrypted with EFS?

Is there a library method somewhere for figuring out whether a file has been encrypted with EFS? I see the Encrypt() and Decrypt() methods on FileInfo, but am looking for a way to query a file's state. ...

Common wold-writable app data folder under Vista/Windows 7

I am trying to find a folder which members of the Users group in Vista and Windows 7, by default, have permission to write to, without elevation. This is to be used for storage of common data (a database and a regularly updated document pack), which needs to be shared and writable by all users.. I thought I had got somewhere with CSIDL...

How can I query NTFS disk quotas in C#?

I need to be able to find, for all users on a given remote machine, those users' disk quotas and actual disk usage. I need to be able to do this reporting in a C# application. (Well, technically a DLL plugin for an app I've already built; but that's irrelevant here.) The remote machine is not on the same network, however, the applicati...

Searching files in NTFS

Hi, We have a fairly large disk array with roughly 2-3 million XML files on it. The disk is formatted with NTFS and we would like to search the filesystem using wildcards. So something like * SomePartOfTheFilename * would be a typical search query. We are using .Net and are finding that using DirectoryInfo appears to be slow. Director...

NTFS alternate data streams

Today I have seen this weird magic NTFS system supports: each file can have multiple data streams. Basically one could have a file a.txt of 0b size but there can be any number of bytes hidden in a separate data stream for that file. This is strictly NTFS related magic and I don't see any noble reason for having these streams around. You ...

how to copy locked files ( Device or resource busy error) on windows xp without admin permissions

Is there is any way I can copy locked files on windows xp machine without having admin rights? I used unloker tool its great but needs admin rights to install and run. how it could be done in some programming language like perl/shell/c c++ etc. or if there exists some workaround for this. ...

Best method for gathering NTFS file access statistics?

I'd like advice on choosing a method to collect file access statistics on NTFS volumes under Windows Vista and Windows 7 (32 & 64-bit). I'd like to count file create/open, delete, read/write accesses for every file. API hooking is out. I need system-wide counts, and both 32 and 64-bit OS without mucking up the OS. Also, I don't thi...

Is there any length-limits of file path in NTFS?

Why can not I create a deep path whose characters in path is more than 255 in NTFS File System? It seems a limits of FAT32, but also exist in NTFS? Can anyone provide some documents? Many Thanks! ...

SHA-1-based directory structure and NTFS limitations?

I have an app that is storing file-based data under a NTFS directory path which keys off the SHA-1 hash of the data. It has several really nice attributes (de-duplication, impervious to other metadata changes, etc.) but I'm curious about the best practices people have experienced for creating hash-based directory storage structures. My p...

Storing a million images

I have a project that will generate a huge number of images. Around 1,000,000 for start. They are not large images so I will store them all on one machine at start. How do you recommended on storing these images efficiently? (NTFS file system currently) I am considering a naming scheme... for start all the images will have an incre...