怎么理解此命令
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
如上,多谢。请详细点。我也想多学习点这方面的知识,请给出参考资料,书名或者网址。多谢!!
------解决方案--------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"
设置文件夹关联
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
关联程序就是让cmd来调用命令TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\"
分行写就知道了
TITLE Removing SVN Folders in %1 设置脚本运行窗口的标题,%1是取脚本运行时传入的第一个参数
COLOR 9A 设置脚本运行窗口的颜色
FOR /r "%1" %%f IN (.svn) DO RD /s /q "%%f" 就是遍历当前文件夹下所有带.svn后缀的文件夹并删除