Create a folder in %username% ?

For questions about using Classic.

Post » Tue Oct 25, 2011 1:38 am

Hi everyone,

I'm here since a long time but mostly as a lurker

My problem is that I'm trying to create a save.INI in the Windows Username folder, something like : C:\Users\%USERNAME%\

But Construct doesn't seems to understand %USERNAME%

Is there a way to do it ? The only thing I managed to do is getting the name in a Text Object but I don't know what to do with it...

Thanks a lot for your help !
B
11
S
1
G
2
Posts: 5
Reputation: 1,147

Post » Tue Oct 25, 2011 4:05 am

Try using the "Path" object. It's "Path.AppData" expression should give you that folder.
B
79
S
24
G
52
Posts: 4,724
Reputation: 39,711

Post » Tue Oct 25, 2011 2:18 pm

It was exactly what I was looking for!

Thank you so much!!
B
11
S
1
G
2
Posts: 5
Reputation: 1,147


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest