Page 1 of 1

Delete character

Posted: 12 Aug 2011 05:32
by karzer
Hi, I have a code like the following


Code: Select all

set _command_fsrm=FileScrn.exe screen list
FOR /f "tokens=2 delims=((" %%G IN ('%_command_fsrm% ^|find "Block File"') DO SET y=%%A
SET _result=%_test:)=% echo %_result%


result: Block)

")" how to delete ?

Re: Delete character

Posted: 13 Aug 2011 06:57
by aGerman
Where does variable %_test% come from and why is ECHO in the same line like SET?
BTW: You could use delims=() to use both charakters as delimiters. delims=(( makes no sense, one ( is enough.

Regards
aGerman