|
Answer» I have some very basic questions i HOPE you can help!
I have this line of code:-
for /F %%k in ('dir /b*.cgm') do set FILENAME=%%nk.cgm
what are, and where can i find a description of:- 1. /F 2. /b 3. k 4. nk
Cheers For the help
Danfor /F %%k in ('dir /b*.cgm') do set FILENAME=%%~nk.cgm
what are, and where can i find a description of:- 1. /F : process each line in the FILE (or command OUTPUT) 2. /b : only output filename in dir command 3. k : a loop variable 4. ~n : note the squiggle, means get just the name part of the filename held in variable k
Does this help? Graham Or at a command line type: for /? Or LOOK here for the same: http://www.dostips.com/DosCommandRef.htm#FOR
|