中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-03 16:12
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » P处理不支持长文件名??? 查看 763 回复 4
楼 主 P处理不支持长文件名??? 发表于 2007-02-16 02:52 ·  中国 广东 深圳 电信
初级用户
★★
积分 135
发帖 64
注册 2006-12-20 04:35
19年会员
UID 74003
性别 男
状态 离线
今天做了个批想删除桌面上的快捷方式,用下面的第一段代码就找不到路径

最后改成第二段就能行??为什么?

批处理不支持长文件名是不是???到底有多长的限制呀?

大哥们能帮一下小菜吗?



del /s /q C:\Documents and Settings\cface\桌面\QQ.lnk
del /s /q C:\Documents and Settings\cface\桌面\单机游戏.lnk
del /s /q C:\Documents and Settings\cface\桌面\常用工具.lnk
del /s /q C:\Documents and Settings\cface\桌面\百宝箱.url
del /s /q C:\Documents and Settings\cface\桌面\游戏中心.lnk
del /s /q C:\Documents and Settings\cface\桌面\易游网娱平台.lnk
del /s /q C:\Documents and Settings\cface\桌面\网吧影院.url
del /s /q C:\Documents and Settings\cface\桌面\网吧消费客户端.lnk
del /s /q C:\Documents and Settings\cface\桌面\网吧音乐.lnk
del /s /q C:\Documents and Settings\cface\桌面\聊天工具.lnk
del /s /q C:\Documents and Settings\cface\桌面\锁屏挂机.lnk




del /s /q C:\Docume~1\cface\桌面\QQ.lnk
del /s /q C:\Docume~1\cface\桌面\单机游戏.lnk
del /s /q C:\Docume~1\cface\桌面\常用工具.lnk
del /s /q C:\Docume~1\cface\桌面\百宝箱.url
del /s /q C:\Docume~1\cface\桌面\游戏中心.lnk
del /s /q C:\Docume~1\cface\桌面\易游网娱平台.lnk
del /s /q C:\Docume~1\cface\桌面\网吧影院.url
del /s /q C:\Docume~1\cface\桌面\网吧消费客户端.lnk
del /s /q C:\Docume~1\cface\桌面\网吧音乐.lnk
del /s /q C:\Docume~1\cface\桌面\聊天工具.lnk
del /s /q C:\Docume~1\cface\桌面\锁屏挂机.lnk


[ Last edited by namejm on 2007-2-20 at 02:57 PM ]
2 发表于 2007-02-16 04:11 ·  中国 陕西 西安 电信
铂金会员
★★★★
积分 5,212
发帖 2,478
注册 2007-02-08 23:39
19年会员
UID 79003
性别 男
状态 离线
长文件名有空格的话。你先加引号
3 发表于 2007-02-17 03:39 ·  中国 广东 深圳 龙岗区 电信
初级用户
★★
积分 135
发帖 64
注册 2006-12-20 04:35
19年会员
UID 74003
性别 男
状态 离线
谢谢哥们,我来试一下呀。。。。真的太感谢你了。
4 发表于 2007-02-17 03:46 ·  中国 广东 深圳 龙岗区 电信
初级用户
★★
积分 135
发帖 64
注册 2006-12-20 04:35
19年会员
UID 74003
性别 男
状态 离线
成功。真的可以。。。谢了。
5 发表于 2007-03-07 07:42 ·  中国 广东 广州 海珠区 电信
新手上路
积分 16
发帖 7
注册 2007-03-07 06:25
19年会员
UID 80977
性别 男
状态 离线
DOS是不支持长文件名的
论坛跳转: