[Help] Open a file automatically [VB6] [solved]
Hello, I am trying to find a way that when I push a button in Visual Basic, a file will open.
I have tried this code ( Dim RetVal
RetVal = Shell("C:\Users\User\Desktop\Mp3cyprusmaniacs_cont est\ini.bat", vbWindowState) ) and it works fine, but it is with a path..and when the file is not there, a message pops up with "error 53 - file not found"..
I would like to know if there is a way to open that file without using any path..
Thanks
uh just add a openfiledialog and add a button and double click on the button and type:
OpenFileDialog1.showdialog
its that simple lol
vb6? the code i have dont work for vb6... get vb 2010 its ALOT better. then do what i said and there you go... or i could make it for you and send it to you
do you mean make a form in VB6 with a button which opens a file?