Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Gurus*
Posted

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

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...