Servoy4 permissions on filesystem: WinXP VS Win7

Hello,

I’m using this line of code in one of my applications:
var f = plugins.file.createFile(‘s’);
that causes new file in the file system c:\Program Files\Servoy\developer\s

On WinXP (4.1.5) file created -everything is fine;
On Win7 (4.1.7) file is NOT created;

In general, security is on higher level in Win7. Used to be asked for Adminstrator’s privileges on file copy.

How to create folder/file via Servoy4 code on Win7('s system partition)?

Regards

you shouldnt do that,
Why do you want to create a file there?
Applications shouldnt write in “c:\program files”
What do you want to write? On a OS (windows or linux/mac) you can write in 2 places:
Temp location of the OS (createTempFile) or write in the user.home directory somewhere.

Thanks, jcompagner!

Switched to plugins.file.getDesktopFolder()
and now seems to work well

Regards