header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

replace and backquote character
Last Post 02 Jul 2008 06:12 PM by halr9000. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
viralUser is Offline
New Member
New Member
Posts:5
Avatar

--
02 Jul 2008 06:05 PM  

Hi

I have a string which contain backquote character .I want to replace backquote character

for eg my string is c:\test\` and i want output c:\test\``

what should be argument to replace method

Is there any other ways

Thanks in Advance

 

halr9000User is Offline
PowerShell MVP, Site Admin
Basic Member
Basic Member
Posts:335
Avatar

--
02 Jul 2008 06:12 PM  
Easiest way is to use single quotes.

99# 'asdfasdf`' -replace '`', '``'
asdfasdf``
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast
Author, TechProsaic
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer