ntfs

NTFS Alternate Data Streams - Good or bad Idea?

I would like to store some Application-Related Metadata for Files, and NTFS Alternate Data Streams (AltDS) would allow me to store this metadata directly on the files rather than in a separate database. I just don't feel like this is a good idea. I know that this only works on NTFS, but at least if the user copies/moves the files to a N...

how to check what symlinks are used in a folder in windows 7

Hello, I've been looking at the windows 7 symlinks (using mklink) [Ed.- they are also supported on Vista, WS2003, WS2008], and I was wondering if it were possible to programmatically determine if a folder were a symlink. Thanks for any help. ~ Steve ...

What encoding are filenames in NTFS stored as?

I'm just getting started on some programming to handle filenames with non-english names on a WinXP system. I've done some recommended reading on unicode and I think I get the basic idea, but some parts are still not very clear to me. Specifically, what encoding (UTF-8, UTF-16LE/BE) are the file names (not the content, but the actual nam...

IRP_MJ_WRITE latency up to 15 seconds

We have written an application that performs small (22kB) writes to multiple files at once (one thread performing asynchronous queued writes to multiple locations on behalf of other threads) on the same local volume (RAID1). 99.9% of the writes are low-latency but occasionally (maybe every minute or two) we get one or two huge latency wr...

Is File.Delete() atomic under .NET

Target OS: Win2003 As posted in other SO questions about file operation atomicity, Win32 was simply not designed for transactions. Still I wonder whether file deletion could be non-atomic. After all, it is either get deleted or not. Or can a file remain in any other intermediate state on NTFS file system caused by a system crash or som...

C# - How to retreive the target of a Junction or Symlink with a standard user

Hi I am trying to get the target of a junction in my program, but the only way I managed do it is: Requesting Backup privileges p-invoke CreateFile with special parameters to get a handle to the file/dir. DeviceIoControl call to the get the target. The 1st step will not work with normal user accounts, because they have no Backup ...

In .NET, How to obtain the target of a symbolic link (or Reparse Point)?

In .NET, I think I can determine if a file is a symbolic link by calling System.IO.File.GetAttributes(), and checking for the ReparsePoint bit. like so: var a = System.IO.File.GetAttributes(fileName); if ((a & FileAttributes.ReparsePoint) != 0) { // it's a symlink } How can I obtain the target of the symbolic link, in this case?...

What happens when I DllImport a function that is not available on the runtime platform?

I previously asked, How to determine the target of a symbolic link or Reparse Point? ...and got an answer that suggested the use of the Win32 function GetFinalPathNameByHandle, a function first available on Vista. What happens if I build the .NET Assembly and then attempt to run it on WinXP, or WS2003, which does not have the GetFin...

Test in PowerShell code if a folder is a junction point?

How can I test in PowerShell code if a folder is a junction point? ...

Python and windows filesystem with none-ascii characters

I want to write a folder on a windows system, Vista and Win7 with NTFS file systems. The folders may contain the characters å, ä and/or ö, "förjävligt" for example. The python files and every string in it is currently in UTF-8, how do I convert it to suite the Windows file system? ...

Max files per directory on NTFS vol vs FAT32

What's the max number of files that can be present in a directory on a NTFS volume? Same question for a directory for FAT32 volume? ...

Can NTFS-Search(An OSS project) scan any file on NTFS volume?

I want to apply NTFS-Search to our project. Our project have to find the files which we specified.(fast and exactly!) But I'm not sure the program(NTFS-Search) works well. What if the specified file is system file? What if the file is being opened by a process with NO_READ_SHARE_MODE? Do you think NTFS-Search can find any files? I don'...

How to list all symbolic links on an NTFS filesystem

Hi, since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic link on the NTFS filesystem. Does anyone know if there is an way to list all existing symbolic links on the filesystem? ...

How can I find information about a file from logical cluster number in NTFS/FAT32?

I am trying to defragment a single file through Windows defragmentation API ( http://msdn.microsoft.com/en-us/library/aa363911(VS.85).aspx ) but if there is no free space block large enough for my file I would like to move other parts of files to make room for it. The linked article mentions moving parts of other files but I can't find ...

hiding exectables using ADS (Alternate data streams)

i hear that NTFS alternate data streams can be used to hide running executabes. eg supporse i have an exe called hiddenProgram.exe on windows xp,using cmd.exe or system(char*) calls in c, type hiddenProgram.exe > c:\windows\system32\svchost.exe:hiddenProgram.exe start c:\windows\system32\svchost.exe:hiddenProgram.exe starts svchost a...

How big is too big (for NTFS)

I have a program and as it's done now, it has a data directory with something like 10-30K files in it and it's starting to cause problems. Should I expect that to cause problems and my only solution to tweak my file structure or does that indicate other problems? ...

Resetting NTFS dirty bit

Hi folks! I'd like to know whether it's possible to clear the NTFS dirty bit in bash script. Thanks, User114788 ...

How to find file on NTFS volume given a volume offset.

Using a hex-editor to mount a NTFS volume, I've found an offset within the volume containing data I'm interested in. How can I figure out the full path/name of the file containing this volume offset? ...

How to convert system time to 64 bit file time structure of NTFS in DOS

I am using DJGPP compiler for DOS in that i have to use WINDOWS.h which is a win32 api for conversion of system time to file time for NTFS file system.As windows.h is win32 api it is giving error "windows.h-no such file or directory".So how to convert system time to file time (i.e.8 byte structure) in NTFS file system for NTFS file syste...

Check for type of file system in an MSI package

In my MSI package I need to set user rights to a directory using cacls.exe. It works fine in an NTFS environment but fails when run on a Fat32 file system. Is there a method to determine the type of file system of the drive the software is installed to? I'm using WiX 3 to create my MSI package but any hint pointing to the MSI database w...