开发者

File write permission to application directory in windows 7 in Flex

I am c开发者_如何转开发reating an AIR application using Flex. In it I use a file in application directory to store some data in it.Its working very well to read and write data to this file with various OS except windows 7. In windows 7 it is not working. May be its a permission problem.

How can i write file in the application directory with Windows 7 ?

Thanks Arif


Have you tried using the user directory instead of the application directory to store data?

Instead of applicationDirectory use applicationStorageDirctory. Your app should always have access to write tot he latter.


Is User Account Control active on the system? Air may not be triggering a UAC prompt properly, but if it is on, depending on the access restrictions, you will need to have the user ok any changes to the Program Files folder(s).

Edit

Turns out you never have the ability to write to the path associated with File.applicationDirectory, at least as far as the documentation is concerned.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜