windows 下用命令來操作定時任務

2021-07-14 19:34:35 字數 542 閱讀 1176



cmd下定時執行命令可以使用 at 命令 或者 schtasks命令。

at 語法:at +時間+執行程式

schtasks語法:schtasks /creat /tn 設定定時執行的名字 /tr 「執行程式」 /sc daily /st時間

例:1、at 12:30 notepad(12:30時執行記事本)

2、at 19:30 calc(19:30時執行計算器)

3、schtasks /create /tn 定時執行 /tr "notepad" /sc daily /st 12:30(12:30時執行記事本)

4、schtasks /create /tn 定時執行 /tr "calc" /sc daily /st 19:30(19:30時執行計算器)

schtasks /create /tn solrindex /tr c:\windows\system32\notepad.exe /sc minute /mo 1 這是一分鐘執行一次

注意其實windows提供介面管理的,找到以後可以修改他的是否登入執行還是後端執行,

Windows下常用命令

ctrl shift esc 開啟任務管理器 win e 開啟我的電腦 win d 顯示 隱藏桌面 win r 開啟 執行 視窗 cmd calc mspaint alt tab 多個視窗間切換 向右 alt shift tab 多個視窗間切換 向左 alt f4 關閉當前視窗 命令列下 清屏cls...

windows下cmd 常用命令

清屏 cls 複製檔案xcopy xcopy c 新建資料夾 d 新建資料夾 s d 這意思是將c盤下新建資料夾下的所有的檔案,複製到d盤的新建資料夾下 xcopy c test.txt d 新建資料夾 這意思是將c盤下的test.txt檔案,複製到d盤的新建資料夾下 ps 如果路徑中含有一些空格,...

windows下Anaconda常用命令大全

1 配置虛擬環境 anaconda命令列預設的python環境名稱是base,指令conda create name xyy python 3.6。其中creat 是建立環境的命令,引數 name意思是建立乙個新環境 雙橫線 xyy是環境名稱,python 3.6是安裝的python的版本 2 安裝...