Read-only access to FAT32/NTFS files w/ write locks?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Data Storage > Read-only access to FAT32/NTFS files w/ write locks?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Read-only access to FAT32/NTFS files w/ write locks?  
Matt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-05 10:46 PM

Hello,

In my application that I'm writing in C++ (and maybe Java),
specifically the cygwin flavor of C++, I want  to be able to open any
existing files in FAT32 or NTFS file systems (in Windows XP) for
read-only purposes.  In particular, I want my program to
unconditionally be able to read-only open any file--and be able to
read all the contents from said fail--which has been marked with any
sort of "exclusionary" lock, including write locks or any other kind
of locks.

Is this possible?  Are there any "exclusionary" locks or scenarios
where in WinXP (with either FAT32 or NTFS files) that might prevent
another process from opening a file in read-only mode?

The only case I have experience:  using cygwin to unset all file
permissions (including the "read" bit(s)) in an NTFS file system, in
which case non-Administrator processes (presumably) will not be able
to read the file.

Thanks for any help,
-Matt

--
Remove the "downwithspammers-" text to email me.





[ Post a follow-up to this message ]



    Re: Read-only access to FAT32/NTFS files w/ write locks?  
Maxim S. Shatskih


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-22-05 07:46 AM

Snapshots help a lot.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Matt" <matt@downwithspammers-mengland.net> wrote in message
 news:6bof61truiejr9mlg5e7v6vravmvop5otd@
4ax.com...
> Hello,
>
> In my application that I'm writing in C++ (and maybe Java),
> specifically the cygwin flavor of C++, I want  to be able to open any
> existing files in FAT32 or NTFS file systems (in Windows XP) for
> read-only purposes.  In particular, I want my program to
> unconditionally be able to read-only open any file--and be able to
> read all the contents from said fail--which has been marked with any
> sort of "exclusionary" lock, including write locks or any other kind
> of locks.
>
> Is this possible?  Are there any "exclusionary" locks or scenarios
> where in WinXP (with either FAT32 or NTFS files) that might prevent
> another process from opening a file in read-only mode?
>
> The only case I have experience:  using cygwin to unset all file
> permissions (including the "read" bit(s)) in an NTFS file system, in
> which case non-Administrator processes (presumably) will not be able
> to read the file.
>
> Thanks for any help,
> -Matt
>
> --
> Remove the "downwithspammers-" text to email me.







[ Post a follow-up to this message ]



    Re: Read-only access to FAT32/NTFS files w/ write locks?  
Kristo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-22-05 10:46 PM

Matt wrote:
[a Windows-specific question]

This is off-topic for clc++.  Followups set.

Kristo






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:41 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register