Title: Add ability to create a temporary file with a specific extension to New-TemporaryFile · Issue #4215 · PowerShell/PowerShell · GitHub
Open Graph Title: Add ability to create a temporary file with a specific extension to New-TemporaryFile · Issue #4215 · PowerShell/PowerShell
X Title: Add ability to create a temporary file with a specific extension to New-TemporaryFile · Issue #4215 · PowerShell/PowerShell
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...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4215
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add ability to create a temporary file with a specific extension to New-TemporaryFile","articleBody":"\u003csup\u003eRelated: #3442\u003c/sup\u003e\r\n\r\nCurrently, `New-TemporaryFile` invariably creates temp. files with extension `.tmp`.\r\n\r\nSometimes, however, it is helpful to create temp. files with a specific filename extension.\r\n\r\nAdding an `-Extension` parameter could provide that:\r\n\r\nDesired behavior\r\n------------------\r\n\r\n```powershell\r\n\u003e New-TemporaryFile -Extension .ps1\r\n\r\n Directory: C:\\Users\\jdoe\\AppData\\Local\\Temp\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a---- 7/10/2017 9:53 PM 0 tmpE3B8.ps1\r\n\r\n```\r\n\r\n\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nPowerShell Core v6.0.0-beta.3\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2017-07-11T01:56:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/4215/PowerShell/issues/4215"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2656e059-5cc2-71ec-8752-0881eee1c0e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5CC:23BDC1:40823B:59F354:6A551BF6 |
| html-safe-nonce | f237a5cc44b62a02dc81b8f48b2a18e829f76aa4f720630e7595e48abbfcd53d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUNDOjIzQkRDMTo0MDgyM0I6NTlGMzU0OjZBNTUxQkY2IiwidmlzaXRvcl9pZCI6IjYyNDIyNzQyMjM5MDMyODQyMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a66077b895c253d52ee0810edaab2f0e40aceeddf4d04748ff036fc3665b21cb |
| hovercard-subject-tag | issue:241901796 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/4215/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f200f82a2580d89145ba3caefe283cb0ec210d2dea4683ca5c2182d1f55d03a6/PowerShell/PowerShell/issues/4215 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f200f82a2580d89145ba3caefe283cb0ec210d2dea4683ca5c2182d1f55d03a6/PowerShell/PowerShell/issues/4215 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width