Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 183228

Change hyperlinked text displayed in powershell

$
0
0

I'm sending out emails with Powershell. Part of the email has a link to a file on the network. I'd like to change the hyperlink to something shorter and more user-friendly. Here is the code for the body of the email:

$SMTPBody = "`nThe following files have recently been added/changed:`n`n"
$File | ForEach { $SMTPBody += "$($_.FullName)`n"

I did a little searching and didn't find anything obvious. I didn't write this. Borrowed it from http://community.spiceworks.com/scripts/show/1595-scan-folder-for-changed-added-files who got it from http://thesurlyadmin.com/2012/09/11/scan-a-folder-for-changes


Viewing all articles
Browse latest Browse all 183228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>