-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWaiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET
Description
Related: #3442
Currently, New-TemporaryFile invariably creates temp. files with extension .tmp.
Sometimes, however, it is helpful to create temp. files with a specific filename extension.
Adding an -Extension parameter could provide that:
Desired behavior
> New-TemporaryFile -Extension .ps1
Directory: C:\Users\jdoe\AppData\Local\Temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 7/10/2017 9:53 PM 0 tmpE3B8.ps1
Environment data
PowerShell Core v6.0.0-beta.3fMichaleczek, jcollado, CharlieBeatnik, jakauppila, cluick and 12 more
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWaiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET