回答編集履歴
1
追記
answer
CHANGED
@@ -1,1 +1,20 @@
|
|
1
|
-
`%%a`ではなく`%a%`では。
|
1
|
+
`%%a`ではなく`%a%`では。
|
2
|
+
|
3
|
+
追記
|
4
|
+
ようやく全貌がわかったので修正してみました。
|
5
|
+
```BAT
|
6
|
+
@echo off
|
7
|
+
setlocal enabledelayedexpansion
|
8
|
+
|
9
|
+
set /a ct=0
|
10
|
+
set /a f=1
|
11
|
+
|
12
|
+
for /f %%a in (C:\Users\Documents\temp\imagesize.txt) do (
|
13
|
+
if %%a leq 30 (
|
14
|
+
move C:\Users\Documents\temp\%ct%.jpg C:\Users\Documents\temp\30_document
|
15
|
+
) else (
|
16
|
+
move C:\Users\Documents\temp\%ct%.jpg C:\Users\Documents\temp\%%a_document
|
17
|
+
)
|
18
|
+
set /a ct=ct+1
|
19
|
+
)
|
20
|
+
```
|