中国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-26 18:29
47,812 topics / 349,912 posts / today 2 new / 48,264 members
其它操作系统综合讨论区 » How to delete directories and files on a LAN directly without prompts?
Printable Version  1,195 / 6
Floor1 ednykissyou Posted 2006-04-05 00:09
初级用户 Posts 88 Credits 182
I want to use a batch file to delete a directory on another machine in the LAN, and delete it directly without a confirmation prompt. How should I write it? Please give me an example. Also, how should I write it if I want to delete files?

Many thanks!!
Floor2 Climbing Posted 2006-04-05 17:55
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
I think it should be no different from deleting directories and files on your local machine, as long as you have sufficient permissions.
Floor3 Kinglion Posted 2006-04-05 19:04
铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室
I don't know whether the OP's LAN is a Netware system. If it is, you can add the corresponding commands in the server-side login script to accomplish it.

For a Windows-based LAN, it's even simpler: use remote administration software to do it.
Floor4 ednykissyou Posted 2006-04-06 04:11
初级用户 Posts 88 Credits 182
Mine is a Windows operating system!
Using a batch file is the most convenient for me, because there are more than 100 machines to handle. Big brother, please demonstrate one or two examples for me.
Before, I used
del \\192.168.0.121\D$\NEW\dir1\ /s /q
this form to delete the dir1 directory folder on machine 21, and delete it directly without prompts, but I don't know why it hasn't been working lately. Did I mess something up somewhere? Please advise, experts.
Floor5 Climbing Posted 2006-04-06 11:45
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
That depends on whether the default administrative shared directory D$ exists. If it does exist, you also have to see whether you have administrator privileges and can access that administrative share. Even if you can access it, if the other side is using an NTFS partition, you still have to see whether your account has permission to delete that directory.
Floor6 Kinglion Posted 2006-04-07 03:56
铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室
It's not clear whether the LAN is using a domain-based network. If it is, then when the client machines log into the domain server, just set it to automatically execute a batch file to carry out the deletion operation.
Floor7 Kinglion Posted 2006-04-07 03:58
铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023