Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 4,869 Posts 1,633 Joined 2002-12-10 00:00 23-year member UID 465 Gender Male
Status Offline
1.
if not exist .\特定目录\nul md .\特定目录
2.
C:\>for /?
Executes a specified command for each file in a set of files.
FOR %variable IN (set) DO command
%variable specifies a replaceable parameter.
(set) specifies a set of one or more files. Wildcards may be used.
command specifies the command to execute for each file.
command-parameters
specifies parameters or switches for the specified command.
If you use the FOR command in a batch program, specify %%variable instead of
%variable. Variable names are case-sensitive, so %i is different from %I.