Author Topic: Powershell Create File with Date and Time in it  (Read 4063 times)

herge

  • Member
  • ***
  • Posts: 477
Powershell Create File with Date and Time in it
« on: March 02, 2013, 07:35:32 AM »

 Hi Rubber Duck Fans:

 
Code: [Select]
get-date -format F | add-content filename.asm

 Expected Output in Filename.asm

Code: [Select]
Friday, March 01, 2013 3:23:50 PM

 If you call it twice it adds a new line to filename.asm
 with the date and time in the long format.

 Regards herge
Regards herge
Read "Slow Death by Rubber Duck"
for chemical Laughs.