1.

Solve : what is meant by this?

Answer»

can any one tell me the meaning of this line in detail plz explain each character in detail actually i m new in SCRIPT writing. thx
For /F "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
Split the dataset (the output of the command 'date /t') into 4 tokens delimited by the / character or by SPACES, and return the 2nd of these tokens in the explicit metavariable %%a and the 3rd token in the implicit metavariable %%b and the 4th token in the implicit metavariable  %%c, and then set a STRING variable called mydate equal to these values separated by hyphens (minus signs). Type FOR /? at the prompt for full documentation.



Discussion

No Comment Found