Hi all me again lol, hopefully this is the last time as my programs nearly finished now and just wanna thank everyone for their help so far. Anyway my problem is this, in my program I use the 'Shell' function to execute external files from my program and want to include the App.Path code to ensure that regardless of the installation directory it goes to the right place.
However when i execute the code shown below i get a runtime error 5, any help would be great guys
Thanks
Private Sub cmdDisconnect_Click()
Dim taskID As Long
taskID = Shell(App.Path & "\disconnect.bat", vbHide)
End Sub


LinkBack URL
About LinkBacks
Reply With Quote