简体   繁体   English

Windows-如何停止.bat文件的cron作业?

[英]windows - How to stop cron job of .bat file?

i have used it . 我已经用过了。 but now it is pouping up again and again how to stop it 但是现在它一次又一次地弹出来如何阻止它

To create the batch file 创建批处理文件

Open Notepad. 打开记事本。 Paste the line "C:\\xampp\\php\\php.exe C:\\wamp\\www\\index.php" Click "File" -> "Save As" Ensure "Save as type:" is set to "All Files" Save the file as "cron.bat" to your C drive To schedule the batch file to run 粘贴行“ C:\\ xampp \\ php \\ php.exe C:\\ wamp \\ www \\ index.php”单击“文件”->“另存为”确保“另存为类型:”设置为“所有文件”保存将文件“ cron.bat”添加到您的C驱动器中以计划运行批处理文件

Open Command Prompt Paste the following "schtasks /create /sc minute /mo 1 /tn "PHP Cron Job" /tr C:\\cron.bat" Press Enter 打开命令提示符,粘贴以下“ schtasks / create / sc minutes / mo 1 / tn“ PHP Cron Job” / tr C:\\ cron.bat“,按Enter键

Try 尝试

schtasks /Delete 

More could be found here 这里可以找到更多

What happened is you created a scheduled task to run each minute. 发生的事情是您创建了一个计划的任务,每分钟运行一次。 So it is doing what you said it to do. 所以它正在按照您说的去做。 If you want to remove it, use above command. 如果要删除它,请使用上面的命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM