[VB 6.0] Up one folder path
Heres the set up:
folder\game.exe
folder\data\file.exe
i want file.exe to open game.exe
code i usually use when its in same folder:
shell app.path + "\game.exe", 1
thanks.
i already tried:
shell app.path + "..\game.exe", 1
It's been a LONG time since I looked at BASIC, but I think you want:
shell app.path + "\..\game.exe",1
shell app.path + "\..\game.exe",1
nope didn't work.
when i msgbox it. c:\folder\folder\folder\game\DATA\..\game.exe
would i have to write a code that would remove
c:\folder\folder\folder\game\DATA\game.exe
and if i do i dont know how to.
when i msgbox it. c:\folder\folder\folder\game\DATA\..\game.exe
would i have to write a code that would remove
c:\folder\folder\folder\game\DATA\game.exe
and if i do i dont know how to.
Hmm. Try:
shell """" + app.path + "\game.exe""",1
That's just a wild guess, but I can't see why it wouldn't take a path with a \..\ in it. It's not like I have VB to test it though.
shell """" + app.path + "\game.exe""",1
That's just a wild guess, but I can't see why it wouldn't take a path with a \..\ in it. It's not like I have VB to test it though.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement