ah good to know °
> And if you can replace text in the path with DISABLED, why can't you replace it with empty, or at least a single semicolon?
I can only replace a fixed leading part not the whole entry because there doesn't seem to be a wildcard mechanism like regex s/c:\\perls\\.*?;//g ... I can only s/c:\\perls\\/DISABLED/g
(Well I could if I iterated over all possible complete entries)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
demo:
c:\tmp>set DEMO=C:\perls\strawberry-perl-5.32.1.1-64bit-portable\perl\ +site\bin; c:\tmp>set DEMO=%DEMO:C:\perls\=DISABLED% c:\tmp>echo %DEMO% DISABLEDstrawberry-perl-5.32.1.1-64bit-portable\perl\site\bin;
°) though can't find it mentioned on GitHub...
In reply to Re^2: Cleaning %PATH% with WinBatch
by LanX
in thread Cleaning %PATH% with WinBatch
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |