• Home
  • Windows
  • Commandline call powershell script with timestamp

Commandline call powershell script with timestamp

linkaiyi
Follow

call powershell with prompt window

powershell Compress-Archive "C:\price_approval" "C:\priceapprovalbackup\price_approval_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.zip"

call powershell without prompt window

powershell -windowstyle hidden Compress-Archive "C:\price_approval" "C:\priceapprovalbackup\price_approval_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.zip"
Object has 0 attachments

Was this article helpful?

This article is viewed 33 times!

Recent Viewed Articles

Related Articles

0 Comments

Leave a Comment

Support