I have the following string:
9/14/22 11:00:12,,,0,0,,,,,,
I need to remove 9/14/22 11:00:12
so I only have ,,,0,0,,,,,,
left over.
@echo off
set str=9/14/22 11:00:12,,,0,0,,,,,,
FOR /F "tokens=1* delims=," %%a in ("%str%") DO (
set REMOVE_STR=%%a
)
set REMAINING_STR=%str:;%REMOVE_STR%;=%
echo New string: %REMAINING_STR%
The output is just the original string, so I know there's a problem with the substr removal step. But, I can't figure out what I'm doing wrong.