开发人员可以确定每个人都有写和读的特权,从Ax 2012导出文件的最佳途径是什么?
Well, what about the folder returned by getTempPath ?
It should be writable by everyone (no guaranties) but there is one for every user!
If you want a shared folder, you should ask the domain admin of your server.
Use WinAPI::getTempFilename
which creates temporay file on the client . Use returned filename for temporary data.
A similar suggestion to Jan's answer... I think I prefer Matej's suggestion if it's just a 'random' file that you are writing
FileIOPermission _permHACK = new FileIOPermission('','r');
str tempPath;
;
_permHACK.assert();
tempPath = (isRunningOnServer() ?
WinAPIServer::getTempPath() :WinAPI::getTempPath());
CodeAccessPermission::revertAssert();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.