Hi all,
need your help.
in vb.net, how am i going to browse a file and open/execute the selected file (no matter what the file format is, either it was a EXE, doc or picture file.)
thank you very much.
Printable View
Hi all,
need your help.
in vb.net, how am i going to browse a file and open/execute the selected file (no matter what the file format is, either it was a EXE, doc or picture file.)
thank you very much.
VB Code:
Dim p As New Process(), s As String Try s = "C:\myfile.pdf" p.Start(s) Catch ex As System.Exception MessageBox.Show(ex.Message) End Try
In the above code 'S' is the path to your file, you can assign this path various ways, one may be showing a fileopendialog and let the user choose the file.
haha got it, thank you very much guy :)