[VB 6.0] Up one folder path

Started by
4 comments, last by Sirisian 18 years, 6 months ago
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
Advertisement
It's been a LONG time since I looked at BASIC, but I think you want:

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.
there is no easy way is there.
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.
yea, i dont know why, but i found out i don't have to use that code anyway (at the current moment).

This topic is closed to new replies.

Advertisement