i need retreive string
"y:\cr_delete_day_types\test\xxxx\extract_prod\saleable_capacity_2013-07-18_1319_153.dat" the part "_2013-07-18_1319" , put in variable can passed in parameter in rest of batch script.
try this:
@echo off &setlocal set "string=y:\cr_delete_day_types\test\xxxx\extract_prod\saleable_capacity_2013-07-18_1319_153.dat" %%x in ("%string%") /f "tokens=1-4delims=_" %%a in ("%%~nx") set "this=_%%c_%%d" echo %this%
Comments
Post a Comment