标题:
find工具怎么镶入for语句中
[打印本页]
作者:
linjuming
时间:
2009-11-17 21:58
标题:
find工具怎么镶入for语句中
find函数 in 里面的子函数冲突,怎么处理
下面代码用到一个find小插件,地址:
find
for /f "delims=" %%i in ('f %need_css_link% -ric:"***:[^\(\'\"]*\.(png^|jpg^|gif)" -o:"k"') do (
xcopy /y %%i %new_folder_path%
)
错误信息:
此时不应有 " -o:"k"') do (。
D:\PHPnow-1.5.3\htdocs\bat>for /f "delims=" %i in ('f D:\PHPnow-1.5.3\htdocs\mycenter\cssparts\menu\menu_17\menu_17.css
-ric:"***:[^\(\'\"]*\.(png^|jpg^|gif)" -o:"k"') do (
作者:
linjuming
时间:
2009-11-17 22:29
问题出在这里
for /f "delims=" %%i in ('f %need_css_link% -ric:"***:[^\(\'
\"
]*\.(png^|jpg^|gif)" -o:"k"') do (
xcopy /y %%i %new_folder_path%
)
如果有\"就出错,去掉就正常
单单运行f %need_css_link% -ric:"***:[^\(\'\"]*\.(png^|jpg^|gif)" -o:"k"也正常
怎么办?
[
Last edited by linjuming on 2009-11-17 at 22:30
]
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5