FOR /F ["options"] %variable IN (file-set) DO command [command-parameters]
FOR /F ["options"] %variable IN ("string") DO command [command-parameters]
FOR /F ["options"] %variable IN ('command') DO command [command-parameters]
‘’ 里面应是命令而不是路径名, 故这里应该是”“。
@echo off
for /f "delims=\,tokens=4" %%i in (”G:\Documents and Settings\Administrator.CHINA-8E663A9D9\桌面\b.txt“) do echo %%i >>c.txt