Problem with replacing ) in SET command

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
casperinmd
Posts: 2
Joined: 17 Jun 2009 12:19

Problem with replacing ) in SET command

#1 Post by casperinmd » 17 Jun 2009 12:24

I am stumped as to why I can't replace a ) in a variable with:
SET VAR=SOMETHING()
SET VAR=!VAR:)=,!

The open parentheses works: SET VAR=!VAR:(=,!

Thanks.

RElliott63
Expert
Posts: 80
Joined: 04 Feb 2009 10:03

#2 Post by RElliott63 » 17 Jun 2009 15:43

Try using the ^ character in front of it.

casperinmd
Posts: 2
Joined: 17 Jun 2009 12:19

#3 Post by casperinmd » 17 Jun 2009 18:38

Nice..that worked. Thanks.

Post Reply