Board logo

标题: [特效代码] 批处理怎样让竖线这个符号转起来? [打印本页]

作者: dongmianwawa    时间: 2011-1-5 09:27     标题: 批处理怎样让竖线这个符号转起来?

想做个动画 让 | 他转起来。。请大虾帮忙!
作者: dongmianwawa    时间: 2011-1-5 09:46

—  \   |   /  —  \   |   /

用这几个字符循环替换也可以。。。。代码怎么写呢?????
作者: hanyeguxing    时间: 2011-1-5 09:48

本帖最后由 pcl_test 于 2017-4-30 20:37 编辑
  1. @echo off&setlocal enableDelayedExpansion
  2. set "1=|"
  3. set "2=/"
  4. set "3=-"
  5. set "4=\"
  6. :a
  7. set/a a+=1
  8. cls
  9. echo !%a%!
  10. if %a%==4 set a=0
  11. >nul 2>&1 ping 127.1 -n 1
  12. goto:a
复制代码
  1. @echo off
  2. (for /l %%a in () do (
  3.     for %%b in (^|^| \\ -- //) do (
  4.         set/p=%%b&set/p=
  5.         >nul ping 1 0
  6.     )
  7. ))<nul
复制代码

作者: dongmianwawa    时间: 2011-1-5 09:50

可以在快点吗??哈哈
作者: caimingbing    时间: 2011-1-5 11:38

把ping的时间改成0,或者直接去年ping 延迟
作者: dingding3224    时间: 2011-5-4 10:42

顶起来 果断的顶起来
作者: hfg1977    时间: 2011-5-4 17:50

以前的一段代码:
  1. .....
  2. :choice1 在歌曲列表中查找 foob2000
  3. set /p "desfname=歌曲列表目标文件(默认:musiclist.txt):"
  4. if not defined desfname set "desfname=musiclist.txt"
  5. for /f "tokens=1,2* usebackq delims=[]" %%a in ("%desfname%") do (
  6. set/p =-<nul>con
  7. set "_artist=%%~nxa"&call set "_artist=%%_artist:* =%%"
  8. set/p =\<nul>con
  9. for /f "tokens=*" %%I in ("%%c") do (
  10. set/p =^|<nul>con
  11. if defined Name_%%~nxI (call echo %%Name_%%~nxI%% ---- %%_artist:~,-2%% [%%b] %%I)
  12. set/p =/<nul>con
  13. ))>>temp.txt
  14. goto end
  15. ...........
复制代码





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