search & replace strings in environment variables
- From: "Frank" <manserv@xxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Dec 2005 14:40:44 +0100
Hello,
how can an asterisks ("*") - or other special characters (e.g. =) be
replaced in environment variables?
The following sequence doesn't work because * is treated as a wildcard:
--
SET TestVar="Asterisks*should*be*replaced"
SET TestVar=%TestVar:*=_%
--
Kind regards,
Frank
.
- Follow-Ups:
- Re: search & replace strings in environment variables
- From: Jerold Schulman
- Re: search & replace strings in environment variables
- From: foxidrive
- Re: search & replace strings in environment variables
- Prev by Date: Re: Capture Screen to GIF/JPG - UNATTENDED
- Next by Date: Re: Internet Explorer
- Previous by thread: Re: PKZIP
- Next by thread: Re: search & replace strings in environment variables
- Index(es):
Relevant Pages
|