paynea Posted June 20, 2002 Posted June 20, 2002 hello all, i've been using the System.Diagnostics.Process.Start() as per divil's 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. Quote
*Gurus* Derek Stone Posted June 20, 2002 *Gurus* Posted June 20, 2002 You can't, 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 file's attributes. Good Luck -CL Quote Posting Guidelines
paynea Posted June 21, 2002 Author Posted June 21, 2002 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. Quote
paynea Posted June 21, 2002 Author Posted June 21, 2002 i think i may be scuppered on this one... i'm guessing i have to dissable the share and provide drive map's 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.