Hello I have been trying to get rid of some icons on my Desktop so I made a simpel code, BUT it seems like this doesn't work the same way as opening it like a shortcut.
My problem is that, when I open a program with Shell it doesn't let the program take the info it needs from its own folder. If I open a program and it need to read some config files, there comes errors. How do I fix this?
Heres a piece of code:
Private Sub BtnUndamed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnUndamed.Click
Shell("ProgramPath.exe", vbNormalFocus)
If VPCheck.Checked = True Then
Shell("ProgramPath.exe", vbNoFocus)
End If
End Sub