Thursday, July 24, 2014

PowerShell TTUC #15 – File Name with Time Stamp

PoweShell TTUC (Tips, Tricks and Useful Commands) #16 - File Name with Time Stamp

File can be created with date / time suffix using the following syntax / commands:

New-item -type file -Name ("MyFile_$(Get-Date -f MM-dd-yyyy_hh-mm-ss).txt") –force

New-item cmdlet will create a new file.  Get-data cmdlet will append date and time in MM-dd-yyyy_hh-mm-ss format. 

9 comments:

This blog is a treasure box full of power script knowledge. I am a computer science student and I find blogs like this one always helpful. I am saving this one for the future. There is never a bad time to read a useful blog, except when you are looking for Dissertation Consulting Services (like I am). Yet here I am, and I will keep coming back to your blog till my degree is complete.

Playing the Judi Online slots is a dream for me and my wife both wins and play huge amount of games.

To be completely honest, I came on your website when looking for a service to assist with university assignments. I'm not sure how I ended up on your website because I can't seem to find anything about Master thesis services. Would you kindly confirm it? My need for it is acute.

This is amazing blog! I have go through all the content of this blog.This is really helpful and informative for me.If you are looking to buy an online Best Thesis Editing Service at a cheap rate.

Thank you for the tip and trick!
Regards: If you have any problems regarding Senior Support, I can solve the issue through https://4thquarterrealtygroup.org.

I visit this site because it is interesting. As a education consultants in pakistan I want to know more about syntax and commands.
Thank you.

I have learned alot in this blog.This is really helpful and informative for me.If you are looking to buy an online mens shalwar kameez for men at a cheap rate.

Great post! Incorporating time stamps into file names is such a handy technique, especially in BI development. It not only helps in version control but also ensures a clear chronology of file updates, which is crucial for maintaining an organized and efficient BI development workflow. Thanks for sharing this practical PowerShell tip - definitely adding it to my toolkit!

Accounting for investments involves specific rules for derecognition and disposal, ensuring proper treatment of gains or losses.

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More