Hi all,
I came across this bit of batch code, and wanted to know what the "^" bit was doing. (I gather the code does some editing from an output string, and pipes the data into each section; but I've not seen the "^" bit before.)
In search of more info, I found that I can't Google for the "^" character.
I wondered if there a search engine that does actually index non alphanumeric information ....?
( snipped from from http://kb.ultratech-llc.com/Scripts/?File=GetInfo.BAT)
----------------------------------
IF NOT "%~3"=="" (
SET %~3=***UNKNOWN***
FOR /F "SKIP=1 TOKENS=*" %%A IN ('%@CMD% ^| FIND /I "%~2" ^| FINDSTR /I /V "%@EXEMPT%" 2^>^&1') DO SET %~3=%%A
----------------------------------
oh, and I just noticed this today... odd.
http://thesource.ofallevil.com/
I came across this bit of batch code, and wanted to know what the "^" bit was doing. (I gather the code does some editing from an output string, and pipes the data into each section; but I've not seen the "^" bit before.)
In search of more info, I found that I can't Google for the "^" character.
I wondered if there a search engine that does actually index non alphanumeric information ....?
( snipped from from http://kb.ultratech-llc.com/Scripts/?File=GetInfo.BAT)
----------------------------------
IF NOT "%~3"=="" (
SET %~3=***UNKNOWN***
FOR /F "SKIP=1 TOKENS=*" %%A IN ('%@CMD% ^| FIND /I "%~2" ^| FINDSTR /I /V "%@EXEMPT%" 2^>^&1') DO SET %~3=%%A
----------------------------------
oh, and I just noticed this today... odd.
http://thesource.ofallevil.com/