Open file in its parent application
-
hello all .... I want to open a file in its parent application In visual basic 6...i dont want to specify the exe path of the application...based on the file extension my application should search its parent application and open the file... In visual basic 6 Using Shell i tried... Like Shell("d:\windows\system32\notepad.exe d:\temp.txt" ) but in this i need to give the parent application path.i dont want to do that... in In Vb .net we have process.start(d:\temp.txt) this opens in the parent application... i want to do the same thing in Visual Basic 6.... Can any one help me out... Thanks in advance....
-
hello all .... I want to open a file in its parent application In visual basic 6...i dont want to specify the exe path of the application...based on the file extension my application should search its parent application and open the file... In visual basic 6 Using Shell i tried... Like Shell("d:\windows\system32\notepad.exe d:\temp.txt" ) but in this i need to give the parent application path.i dont want to do that... in In Vb .net we have process.start(d:\temp.txt) this opens in the parent application... i want to do the same thing in Visual Basic 6.... Can any one help me out... Thanks in advance....
Did you try:
Shell("D:\temp.txt")
RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Did you try:
Shell("D:\temp.txt")
RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
i tried shell("d:\temp.txt") it gives invalid procedure call error msg
-
i tried shell("d:\temp.txt") it gives invalid procedure call error msg
I seem to remember why that didn't work now. Try:
Shell "CMD /C D:\\TEMP.TXT"
RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome