Set ws = WScript.createObject("WScript.Shell")
ws.run "D:/data\Python/cmd.bat",0
<cmd.bat>
@echo off
title 执行Python脚本c: &cd c:\Users\Administrator\AppData\Local\Programs\Python\Python37
python"D:\data\Python\shut.py">>"D:\data\Python\%date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%-%time:~3,2%-%time:~6,2%.txt"
::pause
计划任务,批处理,避免冲突
@echo off
::由于shutdown不能执行多次,所以先取消后,再次执行!shutdown /a
shutdown /s /t 30
目录 前言1. 问题所示2. 解决方法3. 彩蛋前言 🤟 找工作,来万码优才:👉 #小程序://万码优才/r6rqmzDaXpYkJZF 1. 问题所示
执行代码的时候,出现如下
org.springframework.web.util.pattern.PatternParseException: No more pattern data allowed after {*