错误“访问被拒绝。” FINDSTR:无法打开doh

时间:2016-03-11 00:54:49

标签: batch-file schtasks

@echo off
cls
schtasks /query > doh

findstr /B /I %No% "imp" doh >nul

if %errorlevel%==0 goto :mycode

goto :createsch

:mycode
:top
start iexplore.exe C:\Users\Elmer\Desktop\Contacts\web.html
timeout 300
goto top

:createsch

Schtasks /create /sc minute /mo 5 /tn imp /tr %~dp0\..\desktop/newgv1.bat
"AUTHORITY\SYSTEM" >nul
del doh >nul

这是代码我想要做的是创建一个相同批处理文件的任务,一旦创建运行代码。 当我手动运行此代码时,运行正常。 但是当任务计划程序在我们创建它时自动运行它时,它会给出错误“访问被拒绝”。 FINDSTR:无法打开doh

0 个答案:

没有答案
相关问题