Eliminar ruta del archivo
Publicado por Eloy (9 intervenciones) el 23/01/2021 01:00:12
Buenas noches, no consigo eliminar la ruta del archivo.
Me podéis ayudar?
Me podéis ayudar?
1
2
3
4
5
6
7
8
9
10
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each file As String In My.Computer.FileSystem.GetFiles("C:\ Glenn\Office Doc" ,FileIO.SearchOption.SearchAllSubDirectories)
Dim Fname As String = IO.Path.GetFileName(file)
ListBox1.Items.Add(Fname)
Private Sub ListBox1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDoubleClick
Dim file As [String] = ListBox1.SelectedItem
System.Diagnostics.Process.Start("C:\ Glenn\Office Doc\" & file)
Valora esta pregunta
![Me gusta: Está pregunta es útil y esta clara Me gusta: Está pregunta es útil y esta clara](/img/img.png?11.51)
![NO me gusta: Está pregunta no esta clara o no es útil No me gusta: Está pregunta no esta clara o no es útil](/img/img.png?11.51)
0