skip to Main Content

Create a Temporary File in PowerShell

$tempFile = [IO.Path]::GetTempFileName()

An empty file created immediately when you call this method. Remember to clean it up when are you done!

image

Chinh Do

I occasionally blog about programming (.NET, Angular, Node.js, Java, PowerShell, etc), gadgets, etc. See About for more info or reach me on Twitter or GitHub.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top