想用批处理做一Url快捷方式- set INSTALL_PATH=c:\
- ECHO [InternetShortcut]>"%INSTALL_PATH%\testme.url"
- ECHO URL="http://www.baidu.com/baidu?word=%%E6%%89%%B9%%E5%%A4%%84%%E7%%90%%86+%%E5%%AD%%97%%E7%%AC%%A6%%E5%%87%%BA%%E7%%8E%%B0%%E6%%AC%%A1%%E6%%95%%B0&ie=utf-8" >>"%INSTALL_PATH%\testme.url"
复制代码 问题来了...生成的快捷方式是这样的:
[InternetShortcut]
URL="http://www.baidu.com/baidu?word=%E6%89%B9%E5%A4%84%E7%90%86+%E5%AD%97%E7%AC%A6%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0&ie=utf-8"
问题:
1.不想输出引号
[InternetShortcut]
URL=http://www.baidu.com/baidu?word=%E6%89%B9%E5%A4%84%E7%90%86+%E5%AD%97%E7%AC%A6%E5%87%BA%E7%8E%B0%E6%AC%A1%E6%95%B0&ie=utf-8
如上,应该怎么做
如果不加引号,%E6%就会被解析成变量,不是我想要的结果.&也会被解析成连接符,求解答 |