我创build一个batch file,可以读取一个文本文件,其中有四个variables:客户名称,客户编号,客户订单,产品订单。 我在用:
FOR /F "delims=, tokens=1,2,3,4" %%f in (test.txt)do md g:\%%f\%%g\%%h\%%i
但是,似乎没有创build子目录正确。
任何人都可以帮忙吗?
我怀疑你可能在一些参数中有空格。 尝试这个:
FOR /F "delims=, tokens=1,2,3,4" %%f in (test.txt) do md "g:\%%f\%%g\%%h\%%i"