Avatar of Scotch Tech
Scotch TechFlag for United States of America

asked on 

Exchange script - Need to add 2 criteria to a REPLACE command

I have a script that contains a variable statement, which replaces a character, I need that statement to replace 2 different chracters:

The Current statement:
$ExchangeFolderPaths = $FolderPaths | % {"alias:" + $_.FolderPath.replace('/','\')}

I need it to also perform this:
$_.FolderPath.replace([char]63743,"/")}

How do I add these together? 
PowershellExchange

Avatar of undefined
Last Comment
Scotch Tech
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Scotch Tech
Scotch Tech
Flag of United States of America image

ASKER

thats awesome, seems to work.


Avatar of Scotch Tech
Scotch Tech
Flag of United States of America image

ASKER

Great, thanks again!
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo