-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-managementArea - Microsoft.PowerShell.Management moduleArea - Microsoft.PowerShell.Management module
Description
[Enter feedback here]
Example 6: Use wildcards to create files in multiple directories
Get-ChildItem -Path C:\Temp
Show me files in Temp directory
Next, It doesn't work because I am in Powershell PS C:\Myusename>
New-Item -Path * -Name temp.txt -ItemType File | Select-Object FullName
Correct this command
New-Item -Path C:\Temp\ * -Name temp.txt -ItemType File | Select-Object FullName
Or indicate that I should be in PS C:\Temp>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 17b533e9-f53e-08ac-018e-a74ffb74d16a
- Version Independent ID: 609a9efd-598e-050b-c9b8-91402dcc8e87
- Content: New-Item (Microsoft.PowerShell.Management) - PowerShell
- Content Source: reference/7.2/Microsoft.PowerShell.Management/New-Item.md
- Product: powershell
- Technology: powershell-cmdlets
- GitHub Login: @sdwheeler
- Microsoft Alias: sewhee
Metadata
Metadata
Assignees
Labels
area-managementArea - Microsoft.PowerShell.Management moduleArea - Microsoft.PowerShell.Management module