中国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,222 / 22
Floor16 w1314ich Posted 2008-11-25 21:02
中级用户 Posts 119 Credits 234
Why do you always assume others are so simple:

Also, answer your main question:
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 told you to reverse the order and write this sentence at the end.

c:\system.bat is a separate batch file, and the batch file that executes the delete command is not this one
Floor17 DOSforever Posted 2008-11-25 21:08
金牌会员 Posts 2,239 Credits 4,639
I won't explain much else. There's no ambiguity. That sentence "Many low-tech viruses also write batch scripts like this" isn't aimed at you, because I've seen many people in this forum asking for ways to write Trojan viruses and the like, and I've also seen such viruses.
Floor18 terse Posted 2008-11-25 21:09
银牌会员 Posts 946 Credits 2,404
PATH NOT FOUND 这个提示应该是 路径未找到吧
Floor19 w1314ich Posted 2008-11-25 21:24
中级用户 Posts 119 Credits 234
Oh, man, let me tell you what I'm trying to do. I want to make a batch script for GHOST automatic restoration. Those SYSTEM.BAT and SYSTEM.TXT are just temporary files generated. Also, please don't always use words like low-tech content. Everyone is here to learn. No one will be happy if you say someone's stuff is low-tech. Besides, the moderators didn't say that when answering questions because they understand everyone starts from zero, and they themselves went from knowing to not knowing. You are so full of yourself, constantly saying this is low-tech and that is low-tech. How would you feel if someone said that to you?
Floor20 26933062 Posted 2008-11-25 22:39
银牌会员 Posts 879 Credits 2,268
Take a step back and the world is your oyster, let's each give a little.

Back to the main topic,
Are you sure the file you want to delete is in the same directory as this batch file?
If not, try adding the absolute path? Just like in your top post.
Floor21 HAT Posted 2008-11-25 23:05
版主 Posts 5,017 Credits 9,023
It is suggested that the building owner update the problem description on the top floor. Maybe unnecessary misunderstandings can be avoided if the problem description can be clearly stated at the time of posting.

[ Last edited by HAT on 2008-11-25 at 23:31 ]
Floor22 DOSforever Posted 2008-11-25 23:30
金牌会员 Posts 2,239 Credits 4,639
Originally posted by w1314ich at 2008-11-25 21:24:
……Also, please don't always use words like "low-tech content". Everyone is here to learn things. No one will be happy if you say someone's stuff has low-tech content. Besides, the moderators didn't say that when answering questions because they understand that everyone starts from zero. They themselves also went from knowing to not knowing. You are so arrogant, constantly saying this has low-tech content and that has low-tech content. How would you feel if someone said that to you!

As for those who come here to ask for things like virus and trojan horse writing, of course I have to say they have no technical content, and even calling them viruses is giving them too much credit!
Floor23 lscjing Posted 2010-09-14 23:37
新手上路 Posts 2 Credits 5
How to write a batch script to delete specified files when running from a DOS toolbox on a CD?

For example, how to write it for the following files?


C:\WINDOWS\Prefetch
C:\WINDOWS\Prefetch

C:\WINDOWS\Driver Cache\i386
C:\WINDOWS\Driver Cache\i386

C:\WINDOWS\Driver Cache\i386\ntkrnlmp.exe
C:\WINDOWS\Driver Cache\i386\ntkrnlpa.exe
C:\WINDOWS\Driver Cache\i386\ntkrnlup.exe
C:\WINDOWS\Driver Cache\i386\ntkrpamp.exe
C:\WINDOWS\Driver Cache\i386\ntoskrnl.exe

C:\WINDOWS\system32\ntkrnlmp.exe
C:\WINDOWS\system32\ntkrnlpa.exe
C:\WINDOWS\system32\ntkrnlup.exe
C:\WINDOWS\system32\ntkrpamp.exe
C:\WINDOWS\system32\ntoskrnl.exe



Thank you everyone.
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023