I have here 2 file first one is open when i click on app and another is in subfolder where first app need open second one but my code works only if it's on the desktop and on the computer named admin if I move the app to a folder download or any other also it does not work i try on vm host where name of my pc is not admin and its not work .
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Process.Start("C:\Users\admin\Desktop\Sportv\SportTV\bin\Debug\Resources\trial", "/c netstat -b")
Dim result As Boolean = HandleRegistry()
If result = False Then 'something went wrong
MsgBox("Trial expired")
Else
MsgBox("Trial version")
End If
End Sub
I guess that I need something to look for the name of the computer and pathfile then to copy/add it and search for the path of the second app right?