I have a path in a string,
"C:\temp\mybackup.zip"
I would like insert a timestamp in that script, for example,
"C:\temp\mybackup 2009-12-23.zip"
Is there an easy way to do this in PowerShell?
8 Answers You can insert arbitrary PowerShell script code in a double-quoted string by using a subexpression, for example, $() like so:
"C:\temp\mybackup $(get-date -f yyyy-MM-dd).zip" And if you are getting the path from somewhere else - already as a string: Read More...
Tristan Thompson Bio, Parents, Wife, Children, Career, Net Worth: Tristan Thompson, officially known as Tristan Trevor James Thompson is a Canadian-American professional basketball player.
Tristan Thompson started his career at a very younger age and has been consistent throughout. He played one season of college basketball for the Texas Longhorns before being drafted fourth overall by the Cavaliers in the 2011 NBA draft.
Tristan Thompson has professionally played for Cleveland Cavaliers in 2011, Boston Celtics in 2020, Sacramento Kings in 2021, and last played for the Chicago Bulls of the National Basketball Association and has also played for the Canadian national team. Read More...
WWE is headquartered in Titan Towers, an elaborate facility with a massive video vault, a live performance center, and an enormous warehouse for props, among other amenities that few wrestling fans will ever get to experience, according to The Sportster. There’s even a gym on the premises with a miniature version of the WWE Hall of Fame in the lobby, complete with statues of well-known wrestlers from history such as Andre the Giant, among others. Read More...