Delete character

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
karzer
Posts: 21
Joined: 17 Jul 2010 02:56

Delete character

#1 Post by karzer » 12 Aug 2011 05:32

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 ?

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Delete character

#2 Post by aGerman » 13 Aug 2011 06:57

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

Post Reply