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-26 17:47
中国DOS联盟论坛 » 其它操作系统综合讨论区 » How to delete directories and files on a LAN directly without prompts? View 1,194 Replies 6
Original Poster Posted 2006-04-05 00:09 ·  中国 云南 昆明 联通
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
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!!
Floor 2 Posted 2006-04-05 17:55 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I think it should be no different from deleting directories and files on your local machine, as long as you have sufficient permissions.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 3 Posted 2006-04-05 19:04 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
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.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 4 Posted 2006-04-06 04:11 ·  中国 云南 昆明 联通
初级用户
★★
Credits 182
Posts 88
Joined 2005-11-29 05:52
20-year member
UID 46146
Status Offline
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.
Floor 5 Posted 2006-04-06 11:45 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
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.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2006-04-07 03:56 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
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.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 7 Posted 2006-04-07 03:58 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Forum Jump: