Summary: Use Windows PowerShell to create a temporary file name.
I need to output data to a file, but I do not need a permanent file name and location because
the file will be later deleted. How can I easily use Windows PowerShell to create a temporary file name?
Use the GetTempFileName static method from the System.IO.Path .NET Framework class:
[System.IO.Path]::GetTempFileName()
0 comments