Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图让系统(而不是用户)运行的程序写入文件,但我遇到了麻烦。以用户身份运行我的程序,文件生成正确,但使用 运行相同的程序>PSExec -s myProgram.exe,没有生成文件。它似乎在其他方面运行正常,并且文件打开函数不返回 NULL;为了能够以系统的身份写入文件,我需要做些什么特别的事情吗?
>PSExec -s myProgram.exe
我在 Windows 7 64 位机器和 Windows XP 32 上都遇到了同样的问题。
arguments: 要传递的参数(注意文件路径必须是目标系统上的绝对路径)
您是否使用文件的绝对路径?
还要检查文件夹权限,您正在运行应用程序。