China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-29 06:41
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to create a file under DOS? View 5,531 Replies 7
Original Poster Posted 2005-09-26 12:57 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
Ask, how to create files under DOS? Such as.bat,.txt,.cmd and so on. Can the file extension be modified under DOS? Thanks.
Floor 2 Posted 2005-09-26 21:21 ·  中国 辽宁 锦州 中移铁通
荣誉版主
★★★
Credits 1,338
Posts 356
Joined 2005-07-15 12:09
20-year member
UID 40733
Gender Male
Status Offline
Please search for a post in the forum that summarizes how to create files.
Floor 3 Posted 2005-09-27 04:53 ·  中国 甘肃 兰州 中移铁通
初级用户
Credits 111
Posts 4
Joined 2005-06-04 00:00
21-year member
UID 39350
Gender Male
Status Offline
When there's no EDIT, I've always used copy con to create files
Floor 4 Posted 2005-09-27 16:30 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re 220110:

Here are 9 topics I found using the forum "Search" function (searching for "I'm a teacher" by content), all discussing the same issue. So, please learn to make the most of existing resources to solve your own problems.

It is recommended that you first refer to {16383} Ask the experts, how many ways are there for DOS commands to generate text files (*.txt)
http://www.cn-dos.net/forum/viewthread.php?tid=16383

Total of 9 results
Title Forum Author Replies Views Last Post
Ask the experts, how many ways are there for DOS commands to generate text files (*.txt) DOS Difficulties & Problem Discussion (Answer Room) sexgirl
2005-8-3 11 138 2005-8-8 14:35
by JonePeng

Please help, how to do this mock exam question? DOS Difficulties & Problem Discussion (Answer Room) Zjf188
2005-3-23 4 67 2005-3-23 00:00
by Zjf188

Sorry, there is a noob question... DOS Learning Introduction & Wonderful Articles (Teaching Room) ptca
2004-11-19 6 96 2004-12-28 00:00
by chenhui530

Please tell me how to create a text file and how to edit it under DOS? DOS Difficulties & Problem Discussion (Answer Room) yhg2002
2004-3-19 6 42 2004-3-23 00:00
by moroko

Please tell me how to create a text file and how to write content under DOS? DOS Learning Introduction & Wonderful Articles (Teaching Room) yhg2002
2004-3-19 3 61 2004-3-19 00:00
by Dragon King

Seek advice!!!!!!!!!!!!!! DOS Learning Introduction & Wonderful Articles (Teaching Room) ysmj
2004-1-5 5 68 2004-2-4 00:00
by czchb888

Urgent online DOS Learning Introduction & Wonderful Articles (Teaching Room) Little Dragon Girl
2003-11-27 1 31 2003-11-29 00:00
by zhaosuli

Help!!!!!!!!!!!!!! DOS Learning Introduction & Wonderful Articles (Teaching Room) Zhang Chunyan
2003-8-4 3 22 2003-8-4 00:00
by Zhang Chunyan

Ask a test question DOS Difficulties & Problem Discussion (Answer Room) yflyl
2003-6-1 10 60 2003-7-4 00:00
by ko20010214
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 5 Posted 2005-09-27 21:25 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
to everyone:
Thanks everyone.

to willsort:
Thank you for guiding this new user to get started. But I have a little suggestion:
1. I used your search suggestion, but I found that I can never select the "search by content" function, I don't know why?
2. According to your search results, I jump page by page to find, but the following 7 items can no longer be found (whether by publication time or the latest reply time at that time).
3. It is suggested that the forum add a page jump function. If I want to go to page 100, I may only jump page by page.
(But I found the arrangement rule of the web page address. As long as I change the last number in the address bar to the page number I want to reach, and press Enter)
Floor 6 Posted 2005-09-27 21:28 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
I still have a question, how can I modify the file extension in DOS? According to the teachings of the people above, I can only create.txt files.
Floor 7 Posted 2005-09-27 23:09 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re 220110:

Can't you select "Search post content" during the search? It works for me. Maybe you clicked on the text instead of the circle in front of it.

For forum page jumps, indeed, you can just modify the fpage section of the URL in the address bar, and there's no need to add a function for that. Also, it's not only used on the forum list page but also on the post display page (the page you're seeing now). Similarly, fid represents the forum section number; tid represents the post topic number, and as long as there's this item after the? in the URL, a complete post can be displayed normally; pid represents a single post number, which needs to be used in conjunction with tid. Also, there are many action and # modifiers, which need to be gradually experienced for their uses.

As for finding posts based on the title of the topic, can't you use the search?

Regarding the issue of file extensions, it's suggested that you enrich your DOS basic knowledge more. When using copy con or echo or any other method to create a file, we can arbitrarily decide the file extension. txt/bat, etc., are just a kind of habitual convention we have for different types of files, and it doesn't have a substantial constraint on the creation process.

[ Last edited by willsort on 2005-9-27 at 23:12 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 8 Posted 2005-09-28 17:38 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
to willsort

I didn't click the text because the circle is just grayed out and can't be selected
(I have a screenshot but don't know how to upload it)
Forum Jump: