|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『楼 主』:
[求助]批处理无法删除指定文件,提示无法找到路径?
使用 LLM 解释/回答一下
我也不知道我进的什么DOS环境,进入的方式是修改BOOT.INI重启后进入的DOS环境(注:我的系统是电脑公司特别版9.2SP3),BOOT.INI内容如下:
timeout=1
default=C:\
C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
进入后运行C盘根目录的一个批处理,批处理内容如下:
del c:\system.bat
del c:\system.txt
运行后提示PATH NOT FOUND,就是没有找到路径,不知道为什么,如果直接敲击del c:\system.bat和del c:\system.bat命令则能成功执行,而且我运行restart命令也提示错误不能重启,以前我用自己做的98启动盘进入的DOS环境时,运行RESTART命令好使,请问哪里出了问题 (注:DOSforever
不知道是脾气太爆了还是怎么的,每回一个帖子跟吃了炸药一样,以前在坛子里从来没遇到这种人,不知道大家为什么还要护着他,搞不明白,以前在坛子提了很多问题,得到很多人的帮助,很是感激,真的发自内心的感激,我是专门做SEO搜索引擎优化的,为了能使坛子的人气增加,我做过很多外部的优化,我也外带做一些小软件什么的,所以经常来这里提问,希望坛子把DISCUZ版本升到最新,把一些好帖子静态化,有助于搜索引擎的收录,提高网站权重)color=blue]───────────────── 版务记录 ─────────────────
执行:HAT
操作:在帖子标题中增加搜索关键字;代码加code标签
说明:原标题"纯DOS下运行批处理遇到的问题"不利于论坛搜索
处罚:论坛新人免于积分处罚;扣除2点积分
提示:建议阅读以下帖子
{1415}提问的智慧
{7326}论坛新手必读,所有人的基本行为准则
{22703}请不要做浮躁的人
{32667}那些连标题都写不清楚的人们啊,你们醒醒吧
{32825}本版严厉整顿烂帖
───────────────── 版务记录 ─────────────────
Last edited by w1314ich on 2008-11-26 at 10:31 ]
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 ]
此帖被 -2 点积分 点击查看详情 评分人:【 HAT 】 | 分数: -2 | 时间:2008-11-25 20:07 |
|
|

word |
|
2008-11-25 18:30 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2008-11-25 18:46 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
修改boot.ini后进入的DOS环境
[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
The DOS environment entered after modifying boot.ini
timeout=1
default=C:\
C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
|

word |
|
2008-11-25 19:04 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2008-11-25 19:13 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
呵呵 我不太明白 不知道这个问题能解决吗 还是出现这种情况要把BAT转成COM或者EXE才能实现
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?
|

word |
|
2008-11-25 19:17 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2008-11-25 19:20 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
|
2008-11-25 19:23 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
写错了 呵呵 应该是:
del system.bat
del stytem.txt
删除的原因这是我生成的
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
|

word |
|
2008-11-25 19:29 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2008-11-25 19:52 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
人都会被你气得吐血,首先大老爷们儿没见过像你这么磨叽的,跟个女的似的,我经常来论坛提问题,每次都得到解决,而且回答的都很痛快,大家人都很爽快也很客气,DOS联盟是个很好的地方,你回的第一个帖子就感觉有点骂骂咧咧的感觉,接下来就开始磨叽磨叽,你来东北想干你的人一大片,其次我感觉你那个什么金牌会员就是磨叽磨叽的回帖子回出来的,还以为你有多大本事呢,你那还叫回答啊,“把顺序颠倒一下就可以了,先 del stytem.txt 然后 del system.bat ”,我这种新手都能看出来简直就是一个二百五回答的问题。做人不懂就要问,我也不会瞎问,首先在论坛搜索了一遍,看到没有相关的帖子,只好麻烦大家帮帮忙,大家的时间也是宝贵的,我在这里也没有恶意,但是感觉这种人赶紧封ID的好。谢谢!!
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!
|

word |
|
2008-11-25 20:04 |
|
|
huahua0919
银牌会员
    
积分 1608
发帖 780
注册 2007-10-7
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
楼主太激动了,毕竟你也是在问问题的,DOSforever是有水平的,这个我能证明,不过还真不明白你说的“纯DOS环境是WINXP自带的DOS” 是什么意思,至少我没听过。文件能访问,不能删除最基本的做法是看是否写保护了? attrib -s -h -r -a system.bat&del system.bat
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
|
|
2008-11-25 20:19 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
哎~~ 算我倒霉,第一次发帖子被减分,但我真不知道
del 1
del 2 和
del 2
del 1
有什么区别,我记得批处理执行的时候是一条一条命令执行的,第一条命令执行是否成功是不会影响第二条命令的执行,只有在有&&连接两条命令的情况下上一条命令才会影响第二条命令
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
|

word |
|
2008-11-25 20:29 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
呵呵!口气不小!东北怎么了,东北是做你皇帝的地方啊?!就凭你个小P孩还想跟我干?!我在外面玩的时候你还不知道在哪儿呢!没错,这里的用户等级是很大部分是根据发帖量来的,我自认我这个所谓的金牌会员没什么含金量,许多不常来的用户才是真正的高手!你以为你是谁啊,别人都得哄着你?护着你?!没错,我回的第一个帖子就是要叫你好好搞明白什么是 DOS !你要解决的是文件不能删除的问题,我把我所知道的跟你说了,如果你认为方法低级不薛一顾可以另请高人!我没什么义务必须从头到尾把你的问题统统解决,你自己也只说了一小段!小子你少狂妄!先掂掂自己分量!我不谈技术水平的高低,我还就这样了!我不是第一次跟你这样的人说话!
Last edited by DOSforever on 2008-11-25 at 20:37 ]
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 ]
|

DOS倒下了,但永远不死
DOS NEVER DIES !
投票调查:
http://www.cn-dos.net/forum/viewthread.php?tid=46187
本人尚未解决的疑难问题:
http://www.cn-dos.net/forum/viewthread.php?tid=15135
http://www.cn-dos.net/forum/viewthread.php?tid=47663
http://www.cn-dos.net/forum/viewthread.php?tid=48747 |
|
2008-11-25 20:35 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2008-11-25 20:58 |
|
|
w1314ich
中级用户
  
积分 234
发帖 119
注册 2007-4-22
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
算了 我不爱吵架,找个能说上话的凭凭里,你不会可以不回答,你看你回个哪个帖子不是废话不带有挑衅的味道,我问问题的时候很客气吧,我也没有给你施加什么义务,要你从头回答到尾吧,你自己看看你回的帖子吧,针对你以前的每个帖子我的回答都是很客气的,最后实在没法忍受了:
1.
Quote:
Originally posted by w1314ich at 2008-11-25 18:30:
(纯DOS环境是WINXP自带的DOS,并不是加强的DOS环境)
你先把什么是 DOS 搞搞明白
2.
这也叫 WinXP 自带?Microsoft 什么时候发行 WindowsXP 的时候还自带 DOS ?如果这也算自带的话那我还能说 GRUB4DOS 自带了许多操作系统。再问一下,什么叫“加强的DOS环境”?
3.
为什么要两句 del c:\system.bat ?另外,我对你写这样的批处理的动机表示怀疑
4.
把顺序颠倒一下就可以了,先 del stytem.txt 然后 del system.bat 。
许多低技术含量的病毒也这么写批处理的
请哪位有有良知的版主凭下理
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
|

word |
|
2008-11-25 20:59 |
|