- Home /
Application.OpenURL problems with local folder
Hi,
I've been having trouble using the OpenURL function to run EXE files when they're stored in a subfolder of the project directory. Here's the script I'm using:
(on gui button press) Application.OpenURL((Application.dataPath)+"\Games\"+myGame[0]);
where myGame[0] is a string in the format of GameTitle.exe. I've also tried Application.OpenURL("../"+"Games/"+myGame[0]);
The strange thing is that if I leave the files directly in the project folder, and just type Application.OpenURL(myGame[0]); then the file opens correctly, so I'm not sure if there's any special rules around folder structure. If anyone could point out what I'm doing wrong I'd greatly appreciate it!
Thanks, Stephen
Your answer
Follow this Question
Related Questions
Running an external EXE file from Unity 5 Answers
My Build won't run properly on Win 8.1 0 Answers
changing quality settings in run time 1 Answer
will unity run on the android browser 2 Answers
Run again activity Android Plugin 0 Answers