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-11-24 14:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » The meaning of \\?\%1 is: The \\?\ is a prefix used in the Windows long path syntax. It allows paths longer than the traditional 260 - character limit. %1 is a placeholder for the first command - line argument passed to the batch script. So overall, this part is used to represent a path that can potentially be a long path and is taking the first argument as that path for the `rd /s/q` (remove directory / silent / quiet) operation. View 6,158 Replies 16
Floor 16 Posted 2008-06-02 19:47 ·  中国 广东 汕头 潮阳区 电信
高级用户
★★★
DOS时空
Credits 713
Posts 348
Joined 2007-02-10 13:59
19-year member
UID 79169
Gender Male
Status Offline
Originally posted by ggyy66 at 2008-6-2 05:29 PM:
What does \\?\ mean?


Avoid Windows from checking the legality of file names.

[ Last edited by haiou327 on 2008-6-2 at 07:55 PM ]
Floor 17 Posted 2008-06-02 20:26 ·  中国 福建 泉州 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
20-year member
UID 71504
Gender Male
Status Offline
Originally posted by zw19750516 at 2008-6-1 01:37 AM:
\\?\ refers to any path
%1 is the file you want to delete


Is it really that powerful? Oh, I don't even dare to try it...
Forum Jump: