Jump to content
  • Advertisement
Sign in to follow this  
Sirisian

[VB 6.0] Up one folder path

This topic is 4612 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
It's been a LONG time since I looked at BASIC, but I think you want:

shell app.path + "\..\game.exe",1

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!