批處理檔案一開啟就是記事本,記事本如何做批處理檔案

時間 2022-01-04 19:44:45

1樓:亓詩蕾文寶

在命令提示符視窗(cmd)分別執行以下命令語句:

assoc

.bat=batfile

ftype

batfile="%1"%*

2樓:逢贊樸瀚文

解決方法:1:你在記事本裡複製以下**,然後儲存為擴充套件名為.reg

的檔案,如果有不明白可以追問,按我說的做完,就可以開啟了。

[hkey_classes_root\batfile]

@="ms-dos

批處理檔案"

"editflags"=hex:30,04,00,00[hkey_classes_root\batfile\defaulticon]

@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\

65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\

00,33,00,00,00[hkey_classes_root\batfile\shell][hkey_classes_root\batfile\shell\edit][hkey_classes_root\batfile\shell\edit\command]

@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\

54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\

00[hkey_classes_root\batfile\shell\open]

"editflags"=hex:00,00,00,00[hkey_classes_root\batfile\shell\open\command]

@="\"%1\"

%*"[hkey_classes_root\batfile\shell\print][hkey_classes_root\batfile\shell\print\command]

@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\

54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\

00,25,00,31,00,00,00[hkey_classes_root\batfile\shellex][hkey_classes_root\batfile\shellex\drophandler]

@=""[hkey_classes_root\batfile\shellex\propertysheethandlers][hkey_classes_root\batfile\shellex\propertysheethandlers\pifprops]

@=""[hkey_classes_root\batfile\shellex\propertysheethandlers\shimlayer

property

page]

@=""

windows批處理檔案.bat雙擊無法執行,而且預設是記事本開啟,右鍵快捷選單裡也沒執行命令,請問如何修復?

3樓:匿名使用者

.bat是dos下的,也就是命令列下的批處理檔案。雙擊的意思是對其進行編輯。如果要執行,右鍵選單裡選擇『執行』

4樓:匿名使用者

進入cmd

執行命令:

assoc .bat=

如果出現:

.bat=txtfile

那麼執行:

assoc .bat=batfile

應該就能解決。

5樓:吉公尺大光頭

開啟cmd

輸入ftype batfile="%1" %*

assoc .bat=batfile

怎樣用記事本開啟批處理檔案?

6樓:信源鈄民

單擊該檔案,(千萬不要雙擊哦),點右鍵,在彈出的快捷選單中選擇「編輯」。或者先開啟記事本程式,在使用「檔案」-「開啟」命令開啟該bat檔案。

怎麼將記事本儲存為bat批處理檔案

7樓:匿名使用者

開啟你的記事本程式,或者你滑鼠右鍵桌面空白地方,然後點新建,點文字檔案。然後複製下面的**。@echo off

set sanxpk=%cd%

set sanxpk=%sanxpk:\=\\%

> ".\sanxpk.reg" echo windows registry editor version 5.00

>>".\sanxpk.reg" echo.

>>".\sanxpk.reg" echo [hkey_current_user\software\koei]

>>".\sanxpk.reg" echo.

>>".\sanxpk.reg" echo [hkey_current_user\software\koei\san10 tc]

>>".\sanxpk.reg" echo.

>>".\sanxpk.reg" echo [hkey_current_user\software\koei\san10 tc\install]

>>".\sanxpk.reg" echo "installinfo"="%sanxpk%\\"

>>".\sanxpk.reg" echo.

>>".\sanxpk.reg" echo [hkey_current_user\software\koei\san10pk tc]

>>".\sanxpk.reg" echo.

>>".\sanxpk.reg" echo [hkey_current_user\software\koei\san10pk tc\configs]

>>".\sanxpk.reg" echo "mapmovespeed"=dword:00000005

>>".\sanxpk.reg" echo.

clsecho 耐心等待...

regedit /s ".\sanxpk.reg"

del /f /q ".\sanxpk.reg"

clsecho 興邦製作

echo.

echo 登錄檔恢復成功,按任意鍵退出

echo.

pause >nul

cls 以上就是**。複製之後,點那個文字檔案,然後點貼上,這樣就完成第一步了。然後點文字檔案的檔案按鈕,點另存為,然後選擇所有格式,然後輸入1.

bat這樣的名字,這樣就可以實現儲存成bat檔案的效果了。

記事本如何做批處理檔案

8樓:匿名使用者

開啟記事本,把編寫好的語言複製到記事本裡,儲存後關閉,更改記事本檔名,字尾名是.bat

9樓:

另存為*.bat或者改記事本的字尾txt為bat

求乙個windows系統的.bat批處理檔案的記事本程式。記事本程式。記事本程式。

10樓:匿名使用者

@echo off

echo 你好!

echo 歡迎你使用本程式

echo 按任意鍵繼續

pause 1>nul

echo 嘿嘿,程式怎麼樣,很棒吧?

cd . >c:\users\%username%\desktop\我這個程式怎麼樣?.txt

echo 記得把桌面上我這個程式加的檔案看一看哦!

echo.

echo.

echo 可以關掉我這個檔案了

pause 1>nul

有問題追問,滿意採納

批處理檔案

可以簡單寫成 echo off for l i in 100,1,999 do echo i f 3.txt 執行這個bat檔案即可在f盤根目錄得到 3.txt echo off for l i in 100,1,999 do set a a i call echo a f a.txt pause ...

windows批處理檔案,如何編寫批處理檔案?

1 首先,在電腦桌面右鍵單擊空白處,在新建乙個文字文件。3 接著,按enter回車鍵,再輸入我們需要執行的命令和閘道器位址。4 之後,輸入暫停按鈕的命令,再儲存該文字文件後,並關閉它。5 點選文字文件,再按鍵盤上的f2鍵,再把文字文件命名為 bat的檔案。6 最後,在彈出的重新命名的提示視窗中點選確...

寫個批處理,檔案重新命名,批處理 批量重新命名檔案

ren c b var 1 xc else ren c b var 2 xc popd echo 修改完成!pause請在p1001的目錄下執行才批處理,有疑問,請追問!打字不易,如滿意,望採納。如何寫乙個bat批處理將子資料夾裡的檔案分別重新命名 echo off for f delims i i...

批處理 重新命名檔案,批處理檔案bat重新命名單個檔案的命令是什麼?

4批量重新命名檔案 電腦辦公小技巧錦囊 echo off title 批量重新命名檔案 by 依夢琴瑤 rem 如果測試顯示的修改前和修改後名字符合您的要求,請把下行 中的echo刪除。call echo ren c nxb num 1 xc popd popd pause set s0 fgrh ...

求個批處理檔案寫法

大力是也 建立了乙個 ols 資料夾.ms我按你描述 建了 d 源 a a a.txt d 源 b b b.jpg d 源 b a c.ini 並把list.txt的內容 複製到1.txt 然後執行下面的 成功.for f delims i in 1.txt do set a i set b a 5...