- @echo off
- setlocal enabledelayedexpansion
- set n=1
- for /f %%i in ( uv.txt ) do (
- if !n! == 1 (
- sed -i "s/outv/%%i/g" d:\sz\gs\uv_a.gs
- set n=0
- ) else (
- sed -i "s/outu/%%i/g" d:\sz\gs\uv_a.gs
- grads -lbc d:\sz\gs\uv_a.gs
- copy d:\sz\gs\uv_a.gsbak d:\sz\gs\uv_a.gs
- set n=1
- )
- )
复制代码
|