> For the complete documentation index, see [llms.txt](https://knifour.gitbook.io/dos-program-saviour/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knifour.gitbook.io/dos-program-saviour/chapter05.md).

# 設定檔 dosbox.conf

## 設定檔的內容與大、小寫無關

到這裡我們應該已經完成所有的事情了，唯一的問題是，上一章所談的所有設定事項，難道每次進入DOSBox都要重新設定一次嗎？當然不是，還記得在 **"如何開始"** 那一章的最後，我有請大家執行一個步驟，如果你有照著做，在你的DOSBox資料夾應該會有一個檔案叫做 "dosbox.conf" ，這個檔案就是設定檔，改變裡面的資料就可以改變DOSBox的設定，這個檔案只是一般的文字檔，使用任何文字處理程式都可以編輯它，如Windows內建的記事本，我個人推薦使用[Notepad++](https://notepad-plus-plus.org/)。

未修改過的dosbox.conf請參考以下畫面 ![001](/files/-M4BjWFGHWWvGBMUaMbx)

其中有一個\[autoexec]區段，用過DOS的應該都知道DOS有一個autoexec.bat批次檔，這個批次檔會在開機時會自動執行，所以只要你把開機要執行的指令寫在這個區段，他也會在啟動DOSBox時自動執行，我會建議你把這個設定檔改成以下這樣，\[autoexec]區段的內容還是要以你自己的環境去做改變，不要照抄 ![012](/files/-M4BjWFIDMX25wHJCrio)

以現在的CPU而言，DOSBox建議\[cpu]區段的設定值，無論是core或是cputype都要設定成auto，另外最重要的cycles你可以自己測試看看要設定多少才是最適當的值(建議最少20000起跳)，但是一定要設定，如果不設定的話內定值是3000，這會讓你的程式跑起來像在以前老舊電腦執行程式的感覺(為什麼他的內定值要設這麼低，因為他的主要目的是要模擬以前的遊戲，跑太快遊戲根本沒辦法玩)。

至於其他不常用的設定，請自行參考DOSBox Manual。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knifour.gitbook.io/dos-program-saviour/chapter05.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
