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-08-12 00:51
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Batch processing cannot delete the specified file, prompting that the path cannot be found? View 4,218 Replies 22
Original Poster Posted 2008-11-25 18:30 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
I also don't know what DOS environment I entered. The way to enter was by modifying BOOT.INI and restarting to enter the DOS environment (note: my system is Computer Company Special Edition 9.2SP3). The content of BOOT.INI is as follows:


timeout=1
default=C:\

C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect


After entering, run a batch file in the root directory of drive C. The content of the batch file is as follows:

del c:\system.bat
del c:\system.txt


After running, it prompts PATH NOT FOUND, that is, the path is not found. I don't know why. If I directly type del c:\system.bat and del c:\system.bat commands, they can be executed successfully. Moreover, when I run the restart command, it also prompts an error and cannot restart. Previously, when I entered the DOS environment with my own made 98 boot disk, running the RESTART command worked. I wonder where the problem is.
(Note: DOSforever doesn't know if it's too hot-tempered or something. Every time a post is replied to like eating dynamite. I've never encountered such a person in the forum before. I don't know why everyone still protects him. I don't understand. I've asked many questions in the forum before and got a lot of help from many people. I'm really grateful from the bottom of my heart. I'm specifically doing SEO search engine optimization. In order to increase the popularity of the forum, I've done a lot of external optimization. I also make some small software on the side, so I often come here to ask questions. I hope the forum upgrades the DISCUZ version to the latest and staticizes some good posts, which is helpful for search engine inclusion and improves the website weight.)
───────────────── Moderation Record ─────────────────
Execution: HAT
Operation: Added search keywords in the post title; added code tags to the code
Description: The original title " Problems encountered when running batch processing in pure DOS" is not conducive to forum search
Punishment: New forum user exempted from points punishment; deducted 2 points
Tip: It is recommended to read the following posts
{1415}The Wisdom of Asking Questions
{7326}Must-read for forum newcomers, basic code of conduct for everyone
{22703}Please don't be an impatient person
{32667} Those who can't even write the title clearly, wake up
{32825}This version strictly rectifies bad posts
───────────────── Moderation Record ─────────────────


[ Last edited by w1314ich on 2008-11-26 at 10:31 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT -2 2008-11-25 20:07
Floor 2 Posted 2008-11-25 18:46 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Originally posted by w1314ich at 2008-11-20 18:30:
(The pure DOS environment is the DOS that comes with WINXP, not an enhanced DOS environment)

You first figure out what DOS is
Floor 3 Posted 2008-11-25 19:04 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
The DOS environment entered after modifying boot.ini
[boot loader]
timeout=1
default=C:\
[operating systems]
C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
Floor 4 Posted 2008-11-25 19:13 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
This is also called built-in with WinXP? When did Microsoft release Windows XP and also have DOS built-in? If this is also counted as built-in, then I can also say that GRUB4DOS has many operating systems built-in. Also, what is called "enhanced DOS environment"?
Floor 5 Posted 2008-11-25 19:17 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
Hehe, I don't quite understand. I don't know if this problem can be solved. Or do I need to convert the BAT to COM or EXE to achieve it when this situation occurs?
Floor 6 Posted 2008-11-25 19:20 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Why are there two "del c:\system.bat"? Also, I have doubts about the motivation for you to write such a batch script
Floor 7 Posted 2008-11-25 19:23 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
I can't understand the LZ's words very well.
Windows 一键还原
http://www.yjhy.com
Floor 8 Posted 2008-11-25 19:29 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
Typoops, I made a mistake. It should be:
del system.bat
del stytem.txt

The reason for deletion is that this is what I generated
Floor 9 Posted 2008-11-25 19:52 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Just reverse the order. First del stytem.txt then del system.bat. Many low-tech viruses also write batch scripts like this.
Floor 10 Posted 2008-11-25 20:04 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
Everyone will be made so angry by you that they spit blood. First of all, a big man has never seen someone as slow-witted as you, acting like a woman. I often come to the forum to ask questions, and each time I get solutions, and the answers are all very straightforward. Everyone here is very straightforward and polite. The DOS Union is a very good place. I felt a bit grumpy in your first reply, and then you started being slow-witted. There are a lot of people in Northeast China who want to deal with you. Secondly, I feel that your so-called gold member was obtained by replying slowly. I thought you had great ability, but is that called an answer? "Just reverse the order, first del stytem.txt then del system.bat". Even a newbie like me can see that it's simply an answer from a complete fool. One should ask when one doesn't understand, and I won't ask randomly. First, I searched the forum thoroughly and saw that there were no relevant posts, so I had to trouble everyone to help. Everyone's time is also precious. I have no malice here, but I feel that such a person should have his ID blocked quickly. Thank you!
Floor 11 Posted 2008-11-25 20:19 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
The LZ is too excited. After all, you are also asking a question. DOSforever is quite capable, and I can prove that. But I really don't understand what you mean by "the pure DOS environment is the DOS that comes with WINXP". At least I haven't heard of that. The most basic way to access a file but not be able to delete it is to see if it's write-protected? attrib -s -h -r -a system.bat&del system.bat
Floor 12 Posted 2008-11-25 20:29 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
Hey~~ I'm really unlucky. I got my first post deducted points, but I really don't know what the difference is between `del 1` `del 2` and `del 2` `del 1`. I remember that when a batch script is executed, it's one command after another. The success of the first command doesn't affect the execution of the second command. Only when two commands are connected by && will the previous command affect the next one
Floor 13 Posted 2008-11-25 20:35 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Hehe! You're quite arrogant! What's wrong with Northeast China? Is Northeast China a place for you to be emperor? Just凭 you, a little kid, still want to fight with me?! When I was playing outside, you didn't even know where you were! Yes, the user level here is largely based on the number of posts. I admit that my so-called gold member has little real value. Many users who don't come often are really experts! Who do you think you are, and do others have to coddle you? Protect you?! Yes, the first post I replied to was to make you figure out what DOS is! You want to solve the problem of files not being deletable. I told you what I know. If you think the method is low-level and disdain it, you can ask other experts! I have no obligation to solve your problem from start to finish. You only said a short part yourself! Kid, don't be so arrogant! First, weigh your own weight! I don't talk about the level of technical ability. I'm just like this! I'm not talking to people like you for the first time!

[ Last edited by DOSforever on 2008-11-25 at 20:37 ]
Floor 14 Posted 2008-11-25 20:58 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
In addition, let's answer your main point:
Maybe I didn't understand your meaning at first. I thought your del c:\system.bat was to delete the batch file itself, so I asked you to reverse the order and write this sentence at the end.
Floor 15 Posted 2008-11-25 20:59 ·  中国 辽宁 沈阳 联通
中级用户
★★
Credits 234
Posts 119
Joined 2007-04-22 11:09
19-year member
UID 86077
Gender Male
Status Offline
Forget it, I don't like arguing. Find someone who can have a proper discussion. You don't have to answer if you don't know. Look at the posts you reply to, which one isn't nonsense without a provocative tone. When I asked the question, I was very polite, and I didn't impose any obligation on you to answer from the beginning to the end. You can check the posts you replied to yourself. My answers to each of your previous posts were very polite. Finally, I couldn't stand it anymore:

1.

Quote:
Originally posted by w1314ich at 2008-11-25 18:30:
(Pure DOS environment is the DOS built into WINXP, not an enhanced DOS environment)


You first figure out what DOS is

2.

Is this also called built into WinXP? When did Microsoft release Windows XP and still have DOS built in? If this counts as built in, then I can also say that GRUB4DOS has many operating systems built in. Also, what does "enhanced DOS environment" mean?

3.

Why two del c:\system.bat? Also, I suspect the motivation for you to write such a batch file

4.
Just reverse the order. First del stytem.txt and then del system.bat.

Many low-tech viruses also write batch files like this



Please let some conscientious moderator judge fairly
Forum Jump: