Code: Select all
for %%a in (*.*) do (
set fileName=%%a
set firstPart=
for %%b in (!fileName:_= !) do (
if not defined firstPart (
set firstPart=%%b
) else (
set lastPart=%%b
)
)
rem Process the parts here...
)
Code: Select all
for %%a in (*.*) do (
set fileName=%%a
set fileName=!fileName:_= !
set firstPart=
for %%b in (!fileName!) do (
if not defined firstPart (
set firstPart=%%b
) else (
set lastPart=%%b
)
)
rem Process the parts here...
)
What is happening here? Thanks a lot...
Antonio