swapover.bat

来自「Reference Implementation of G.711 standa」· Batch 代码 · 共 31 行

BAT
31
字号
@echo off

REM Catch bad usage
if "%1"=="" goto error

REM Treat options
if not "%1"=="-if" goto start

REM Option -if
:optif
set opt=%1 %2
shift
shift
goto start

REM Actual byte-swapping - use "for" to expand wildcards in %1
:start
if "%1"=="" goto quit
for %%f in (%1) do sb %opt% -over %%f
rem sb %opt% -over %1
shift
goto start

:error
REM Display usage
echo Usage:
echo  %0 [-if xxx] file [file ...]
echo where xxx is one the conditional byteswapping option: big, little, or any
:quit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?