write me a powershell script that replaces the following text placeholders with…
- User
write me a powershell script that replaces the following text placeholders with powershell variables in 6 different files. 3 of the files are all the same content but different file format, and the other 3 are the same content but different file format aswell.
The filenames are: Main.htm, Main.txt, Main.rtf. Reply.htm, Reply.txt, Reply.rtf.
The script should first copy all files from a folder called "signaturefiles" that is in the same directory as the script to the local c drive of the computer running the script in a folder of the same name. There are other folders and files in there not being edited but must also be copied along with them. It then edits 6 of the newly copied files with the information below.
There is also a condition check that checks a variable and then chooses the correct two variables to fill in based upon that, the variable names for that are: BRB, ADL, DWN, MLB and PER which correspond to the following variables
BrisbanePhone and BrisbaneAddress, AdelaidePhone and AdelaideAddress, DarwinPhone and DarwinAddress, MelbournePhone and MelbourneAddress, PerthPhone and Perth Address.
In the 3 'Main' files: 'NAMEPH' gets replaces with the variable Title The two placeholders 'ADDRESSPH' and 'PHONEPH' are replaced with the correct address and phone depending on what the variable User.
- Assistant