Hi I have a file named e.g abc.exe that's is all I knoe and it resides in my c:\ directory but I don't know which folder is it in.
Is there a way to run this program without the help of the user to key in the path? Thanks for your replies
Printable View
Hi I have a file named e.g abc.exe that's is all I knoe and it resides in my c:\ directory but I don't know which folder is it in.
Is there a way to run this program without the help of the user to key in the path? Thanks for your replies
Odd you should say that. Well, if you always put the abc.txt file in the directory the app. is running from, you can access it using the old DOS character for the current directory
"./abc.txt"
Should work. It works for me.
. = Current Dir.
.. = Parent Dir of Current Dir.
'if it is an exe file.
Private Sub Form_Load()
Dim RetVal
RetVal = Shell("prjtips.exe", 1)
End Sub