编码时我意识到这些术语没有区别。请澄清一下。提前谢谢。
答案 0 :(得分:5)
long int
和long long
以及long long int
和long
之间没有区别。 int
是double
和int
的尺寸修饰符。如果未明确说明实际类型,则假定为@echo off
:: Set current directory to today's date
pushd "d:\%date:~0,2%%date:~3,2%%date:~6,4%"
for /d %%A in (*) do ( %= Iterate all child folders =%
for /d %%B in ("%%A\*") do ( %= Iterate grandchild folders = %
for /f "eol=: delims=" %%F in ( %= Iterate result of DIR command =%
'dir /b /a-d "%%~B\*" 2^>nul' %= List all files in grandchild folder =%
) do ren "%%~B\%%F" "%%~A_%%~nxB_%%F" %= Rename each file =%
)
)
popd
。