K
Kok Yong Lee
Hi there,
Let sya in my Y: drive I have a bunch of files that always have teh same
postfix (Src.zip) file name. How can I grab the part of the filename just
before Src.zip??
I tried
for /f "tokens=*" %%i in ('dir *src.zip /b') do @echo %%i;
but not sure how best to use the tokens, delims to my aid. the help menu
isnt really helpful. Can anyone shed some light on this?
thanks.
Y:\>dir *src.zip /b
M10_0_220R10QASrc.zip
M10_0_229R10QASrc.zip
M10_0_232R10QASrc.zip
M11_0_203Src.zip
M11_0_211Src.zip
M11_0_220Src.zip
M11_0_228Src.zip
Let sya in my Y: drive I have a bunch of files that always have teh same
postfix (Src.zip) file name. How can I grab the part of the filename just
before Src.zip??
I tried
for /f "tokens=*" %%i in ('dir *src.zip /b') do @echo %%i;
but not sure how best to use the tokens, delims to my aid. the help menu
isnt really helpful. Can anyone shed some light on this?
thanks.
Y:\>dir *src.zip /b
M10_0_220R10QASrc.zip
M10_0_229R10QASrc.zip
M10_0_232R10QASrc.zip
M11_0_203Src.zip
M11_0_211Src.zip
M11_0_220Src.zip
M11_0_228Src.zip