-2

i've been created launcher application with vb.net, but when the target application began, there was an error "Can not Read Start.ini file".
I tried with this code

Dim psi As New ProcessStartInfo()
With psi
     .FileName = sb.ToString
     .UseShellExecute = True
End With
Process.Start(psi)

how to fix it ?

1 Answers1

0

Daniel probably has it right. Try setting the WorkingDirectory property based off your FileName:

    Dim psi As New ProcessStartInfo()
    With psi
        .FileName = sb.ToString
        .WorkingDirectory = System.IO.Path.GetDirectoryName(.FileName)
        .UseShellExecute = True
    End With
    Process.Start(psi)
Idle_Mind
  • 38,363
  • 3
  • 29
  • 40