怎麼寫批處理bat檔案來替換檔案

時間 2021-07-08 22:30:32

1樓:匿名使用者

上面的都不對.

@echo off

copy /y "c:\program files\thunder\userconfig.ini" "c:

\program files\thunder\profiles\userconfig.ini"

start "" ""c:\program files\thunder\thunder.exe"

存為bat放到開始選單的啟動資料夾裡.

注意:前提是關閉迅雷自帶的開機啟動.

2樓:

@echo off

copy /y "c:\program files\thunder\userconfig.ini" "c:

\program files\thunder\profiles\userconfig.ini"

start "" "c:\program files\thunder network\thunder\thunder.exe"

儲存為.bat檔案,把他拖到"開始"--"程式"--"啟動"裡面就可以了

3樓:匿名使用者

不要用迅雷的開機執行功能,否則不能保證批處理是否會在迅雷前執行,在批處理裡啟動迅雷.

copy c:\program files\thunder\userconfig.ini c:

\program files\thunder\profiles\userconfig.ini /y

"c:\program files\thunder network\thunder\thunder.exe" /s

其實不一定要在開機時執行,也可以在關機時替換.

執行 gpedit.msc

計算機配置--windows 設定--指令碼(啟動/關機)--關機--新增--指令碼名--瀏覽找到你的指令碼--確定.

這個指令碼不用啟動迅雷,只要

copy c:\program files\thunder\userconfig.ini c:

\program files\thunder\profiles\userconfig.ini /y

就可以了

4樓:一百一渡

copy %0 "c:\program files\thunder\profiles\userconfig.ini"

拖到啟動項.

5樓:匿名使用者

xcopy /y c:\program files\thunder\userconfig.ini c:

\program files\thunder\profiles\userconfig.ini

是不是這樣

請問bat批處理檔案為何無法正常用date變數進行賦值

瘋狂的鼴鼠 我給你解讀一下 set date date 8,2 date是系統變數,也就是說date 2018 09 01,再加上字串擷取 date 8,2 就是從第8個字元開始向後擷取2個字元,所以 date 8,2 01 set month date 5,2 到了這裡由於上面給date重新賦值了...

如何自動執行bat批處理檔案,如何自動執行BAT批處理檔案

copy y 0 userprofile 開始 選單 程式 啟動 說明 這句意思,拷貝自身到開機啟動項 0 表示自身,你可以改為你需要的檔名,例如 copy y 我的批處理.bat userprofile 開始 選單 程式 啟動 還有一種方法 例如 你的批處理檔案在c program files x...

我要寫批處理檔案BAT,會把資料夾複製到我的下,怎麼寫

reg query hkcu software microsoft windows currentversion explorer user shell folders temp temp.txt for f tokens 2 delims i in type temp temp.txt finds...