expands %G to a drive letter and path only
tried using %~nxG expands %G to a file name and extension only not working
Amazing! and good to learn from you case by case....aGerman wrote: ↑25 Jul 2018 15:05Just use the space as delimiter (which is the default) and output everything after the fourth token (which is the colon).SteffenCode: Select all
>"signfile.txt" (for /f "usebackq tokens=4*" %%a in ("need2sign.txt") do echo %%b)
Code: Select all
findstr /v /g:temp.txt 829501.txt >updated.txt
Code: Select all
findstr /v /g:removal.txt 829501.txt >updated.txt
Excellent! works as expected...aGerman wrote: ↑17 Jul 2018 15:20DO NOT OVERWRITE the predefined PATH variable!
You don't even need an additional variable because you already have %cd%.SteffenCode: Select all
for /f "tokens=5* delims=\" %%a in ("%cd%") do set "base=%%b"