回复 xp3000
嗯 这个你自己加一下吧
terse 发表于 2013-4-27 17:10 - @echo off&setlocal enabledelayedexpansion
- set "s=urn:btih"
- (for /f "usebackq delims=" %%i in ("%~1") do (
- set "str=%%i"
- for /f "tokens=1* delims=:" %%a in ("!str:*%s%=$!") do (
- set "str=%%b"
- echo ^magnet:?xt=urn:btih:!^!str:~,40!^
- )
- ))>$
- move $ %1
复制代码 非常感谢,不过文本后面出现了4个空格 |