open file as read only???

paynea

Member
Joined
May 10, 2001
Messages
14
Location
UK - Leicester
hello all,

ive been using the System.Diagnostics.Process.Start() as per divils suggestion a few days ago - this works great.
however i now have a situation where i need to open files as read only.

can anyone shed any light on the matter?
do i need to use the System.Diagnostics.ProcessStartInfo() arguments?


thanks,
drew.
 
You cant, unless the application that will be opening the file is able to receive a command line parameter that specifies to open the file as read-only. The best work around for this is to set the attributes on the specified file to read-only before you open it. Far from perfect however, especially if the application ignores the files attributes.

Good Luck
-CL
 
i have set the permissions on the server so everyone has read only access (with the exception of administrators of course) is there a way to get round nt security to write, but only by using my software...

can i set up a username/password which my app can pass somehow?

thanks,
drew.
 
i think i may be scuppered on this one...

im guessing i have to dissable the share and provide drive maps and set up users permissions in NT as well as sql...

is this the normal way round for db applications that use file pointers?


thanks,
drew.
 
Back
Top