Board logo

标题: [文件操作] 批处理自输出文件 [打印本页]

作者: email10t    时间: 2015-8-16 11:44     标题: 批处理自输出文件

  1. 1>1/* :
  2. @echo off
  3. set /p=请输入字符串 (长度不超过 9024):<nul
  4. cscript -nologo -e:jscript %0 >~out.com
  5. start ~out.com
  6. ping /n 1 127.1 >nul
  7. del ~out.com
  8. goto :eof
  9. */;
  10. /*@cc_on @*/
  11. /*@if (@_jscript_version<6)
  12. var StdIn;
  13. StdIn = WScript.StdIn
  14. var str=String(StdIn.ReadLine());
  15. var carry=String.fromCharCode(32+str.length/95);
  16. var unit=String.fromCharCode(32+str.length%95)
  17. var out='5~!5@ Pj ^]j`X(B!(B"(B+(B+(B,(B-(B-(B.(B/(B/(B0(B0(B1(B2(B2(B4(B7(B9(B:(B;(B<(B=(B>(B>(B?(B@(BB(BB(BC(BEP5@!5% ,~P]j'+carry+'^PVX, Rj_ZWBP^ZXX(B'+unit+'tnsg}gaJF`E<`td-pKTtg-!x`L-!\r\n'+str+'`';
  18. WScript.Echo(out);
  19. @end
  20. @*/
复制代码

作者: bailong360    时间: 2015-8-16 14:28

这是啥,Quine?
作者: CrLf    时间: 2015-8-16 15:48

64位系统无法测试,楼主可否把功能介绍得更详细一点?




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2