19 Dec 2013 @ 12:41 PM 

PowerShell offers many ways to accomplish a task.
Writing text to a file can be done by using Out-File or Add-Content… or those are the most commenly used ways by the IT Pro’s.
What if I told you there is an easier way?

${d:\temp\myfile.txt} = 'This is a some text to put in myfile.txt'

Yes, as easy as that :-)

Posted By: Jeff Wouters
Last Edit: 19 Dec 2013 @ 12:41 PM

EmailPermalink
Tags
Categories: DuPSUG, PowerShell, Script



 Last 50 Posts
 Back
Change Theme...
  • Users » 1
  • Posts/Pages » 333
  • Comments » 480
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Contact



    No Child Pages.

Speaking



    No Child Pages.

Health Check



    No Child Pages.