开发者

Creating Files as System

I am trying to get a program run by System(rather than a user) to write to a file, but I am having trouble. Running my program as a user, the file is generated correctly, but running the same program using >PSEx开发者_JAVA百科ec -s myProgram.exe, no file is generated. It seems to be otherwise running correctly and the file open function does not return NULL; is there something special I have to do to be able to write to a file as System?

I am having the same issue on both a Windows 7 64 bit machine and Windows XP 32.


arguments:
Arguments to pass (note that file paths must be absolute paths on the target system)

Are you using absolute path to the file?

Also check the folder permissions, you are running the application in.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜