Opening File (File Object)

For questions about using Classic.

Post » Tue Oct 25, 2011 4:48 pm

hello,

I've seem to run into problem, was wondering if you could help.

ok I want to make AutoRun with construct, So I click Sprite and it Executes some file in subdirectory of Construct Made .exe file.

So example
C:\Autorun.exe
C:\Bla\bla.exe

and C can be B or D or whatever letter
I'm using file object execute file command but, it works with full Path
's
Doesn't with "\bla\bla.exe" or "..\bla\bla.exe" is there anyway to make it work like this?
B
24
S
7
G
3
Posts: 138
Reputation: 2,795

Post » Tue Oct 25, 2011 5:21 pm

Do it like this for paths relative to your cap/exe:
AppPath & "\bla\bla.exe"
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219

Post » Fri Oct 28, 2011 9:47 am

thanks man, worked
B
24
S
7
G
3
Posts: 138
Reputation: 2,795


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests