中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 01:40
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] Batch processing cannot delete the specified file, prompting that the path cannot be found?
Printable Version  4,221 / 22
Floor1 w1314ich Posted 2008-11-25 18:30
中级用户 Posts 119 Credits 234
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:


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


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 ]
Floor2 DOSforever Posted 2008-11-25 18:46
金牌会员 Posts 2,239 Credits 4,639
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
Floor3 w1314ich Posted 2008-11-25 19:04
中级用户 Posts 119 Credits 234
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
Floor4 DOSforever Posted 2008-11-25 19:13
金牌会员 Posts 2,239 Credits 4,639
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"?
Floor5 w1314ich Posted 2008-11-25 19:17
中级用户 Posts 119 Credits 234
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?
Floor6 DOSforever Posted 2008-11-25 19:20
金牌会员 Posts 2,239 Credits 4,639
Why are there two "del c:\system.bat"? Also, I have doubts about the motivation for you to write such a batch script
Floor7 lianjiang2004 Posted 2008-11-25 19:23
金牌会员 Posts 1,884 Credits 3,946
I can't understand the LZ's words very well.
Floor8 w1314ich Posted 2008-11-25 19:29
中级用户 Posts 119 Credits 234
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
Floor9 DOSforever Posted 2008-11-25 19:52
金牌会员 Posts 2,239 Credits 4,639
Just reverse the order. First del stytem.txt then del system.bat. Many low-tech viruses also write batch scripts like this.
Floor10 w1314ich Posted 2008-11-25 20:04
中级用户 Posts 119 Credits 234
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!
Floor11 huahua0919 Posted 2008-11-25 20:19
银牌会员 Posts 780 Credits 1,608
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
Floor12 w1314ich Posted 2008-11-25 20:29
中级用户 Posts 119 Credits 234
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
Floor13 DOSforever Posted 2008-11-25 20:35
金牌会员 Posts 2,239 Credits 4,639
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 ]
Floor14 DOSforever Posted 2008-11-25 20:58
金牌会员 Posts 2,239 Credits 4,639
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.
Floor15 w1314ich Posted 2008-11-25 20:59
中级用户 Posts 119 Credits 234
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
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023