没有写权限从任务调度的文件? [英] No permission to write a file from task scheduler?

查看:319
本文介绍了没有写权限从任务调度的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将运行C ++程序,并输出到>重定向文件的批处理文件。这个文件是由任务调度运行。

I got a batch file that will run a c++ program and output to a file with ">" redirection. This file is to be run by task scheduler.

我发现,当该批处理文件从任务调度运行,它声称访问被拒绝。该批处理文件,直到它到达>重定向的部分运行正常。 (我看到整批可以不细运行 - >)我已经尝试运行任务调度程序作为管理员为好,但我还是得到了访问被拒绝。

I found out that when the batch file is ran from task scheduler, it claims "access is denied". The batch file runs fine until it reaches that ">" redirection part. (I see that the whole batch can run finely without ">") I have tried running the task scheduler as an administrator as well, but I still got "access is denied".

有没有办法解决?

推荐答案

有可能是它的相当多的原因,下面分排名第一检查:

There may be quite a few reasons of it, first check below points:


  1. 检查是否谁已安排批处理脚本用户在运行任务
    调度程序系统或没有管理员访问权限。

  1. Check whether the user who has scheduled batch script to run in Task scheduler has admin access on the system or not.

提供的RedirectedFolders和所有的子用户充分共享/ NTFS权限
文件夹,well.you可以手动传播权限全部下到文件夹中。

Give that user full Share/NTFS permissions on the "RedirectedFolders" and all of the sub folders as well.you can manually propagate all permissions down to the folders.

用户应该具有读取和写入
与完全控制RedirectedFolders一起权限。

The user should have read and write permissions along with full control to the "RedirectedFolders" .

这篇关于没有写权限从任务调度的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆