Ouvrir un fichier en lecture seule

Fermé
bouchrot Messages postés 353 Date d'inscription mercredi 12 octobre 2011 Statut Membre Dernière intervention 2 janvier 2023 - 3 juin 2014 à 23:31
Bonjour,

salut
j'ai besoin je veux ouvrir un fichier en lecture seul j'ai pas réussis voila mon code
Try
Dim proc As New Diagnostics.Process
proc.StartInfo.UseShellExecute = True
'Définition du fichier à ouvrir
proc.StartInfo.FileName = ch & "\base_toparchive\dossier\" & txt_anne.Text & "\" & Me.label_doss.Text & "\" & txt_fich.Text
proc.Start()

Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

merci
A voir également: