代码如下;
*********************
@echo off
attrib -h E:\Software data storage\xunlei\扫黑1 /s
pause
*********************
管理员身份运行结果为:Parameter format not correct -
abstraction:
Here is the solution to your problem: Surround the filename with double quotes. Otherwise the command prompt will think each embedded space in the filename separates another parameter. Here is how you issue the command in the original post:
attrib -r +s "c:\documents and settings\Myname\favorites"