本帖最后由 zaqmlp 于 2019-10-17 00:18 编辑
- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- setlocal enabledelayedexpansion
- >"%tmp%\t.t" echo;!cmdcmdline!
- endlocal
- >"%tmp%\j.j" echo;s=WSH.StdIn.ReadLine().replace(/^^.+?\.(bat^|cmd)"\s*/ig,'');
- >>"%tmp%\j.j" echo;WSH.echo(s.replace(/"/g,'').replace(/ (?=[a-z]:)/ig,'\r\n'));
- for /f "delims=" %%a in ('type "%tmp%\t.t"^|cscript -nologo -e:jscript "%tmp%\j.j"') do (
- if exist "%%a\" (
- echo;"%%a"
- del /f /q /ah "%%a\desktop.ini" 2>nul
- set "f="
- for /f "delims=" %%b in ('dir /a-d/b "%%a\*.ico" 2^>nul') do (
- set f=1
- (echo;[.ShellClassInfo]
- echo;IconResource=%%b)>"%%a\desktop.ini"
- attrib +s +h "%%a\%%b"
- attrib +s +h "%%a\desktop.ini"
- attrib +r "%%a"
- )
- if not defined f (
- echo;Not Found - *.ico
- )
- echo;--------------------------
- )
- )
- :end
- echo;%info%
- pause
- exit
复制代码
|