摘要: 去掉左侧空格1: @echo offset "str= ab c&>! " for /f "tokens=*" %%i in ("%str%") do echo "☆%%i☆"pause复制代码 去掉左侧空格2: @echo offset "str= ab c&>! " :interceptif "%str:~0,1%"==" " set "str=%str:~1%"&goto interceptec 阅读全文
posted @ 2011-12-07 16:06 zhh 阅读(1704) 评论(0) 推荐(0) 编辑
摘要: 批处理获取收藏夹路径:for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites"') do (set Fav=%%j)echo 收藏夹路径是%Fav%pause >nul批处理获取图片收藏夹的方法:@echo offfor /f "tokens=3,*" %%i in ('reg query &q 阅读全文
posted @ 2011-12-07 14:09 zhh 阅读(683) 评论(0) 推荐(0) 编辑