下載 AutoHotkey 的 zip file,解壓縮後執行裡面 Compiler 資料夾中的 Ahk2Exe.exe(Script to EXE Converter)
假設批次檔中執行的命令為 firefox -profile defaults\profile,那麼在 Compiler 資料夾中新增一個文字文件,副檔名為 .ahk,用記事本開啟,輸入以下內容:
run firefox -profile defaults\profile
return
於 Ahk2Exe 視窗中:Source(script file),指定方才新增的 .ahk 檔案;Destination(.exe file),指定欲生成 .exe 執行檔之檔案名稱。
Custom Icon(.ico file)為可選項,指定欲生成 .exe 執行檔之圖示,若不指定,則會預設使用和 Ahk2Exe.exe 同樣的圖示。圖示必須使用 .ico 檔案,可用 Resource Hacker 提取。
文章標籤
全站熱搜

呆丸兄: 您好~將批次檔轉成 .exe 執行檔,也可以直接用Bat To Exe Converter(http://www.f2ko.de/English/b2e/index.php),他也可以選擇不顯示DOS視窗(在Bat To Exe Converter(V1.5)內選擇Invisable application),用這個就不用寫成autoit的腳本程式了喔~@@ Bat To Exe Converter還有其他功能~請參考 http://blog.miniasp.com/post/2008/10/Useful-tool-Bat-to-Exe-Converter.aspx 或 http://azo-freeware.blogspot.com/2009/07/bat-to-exe-converter-1500.html
感謝分享!