Skip to content

Example 6: Use wildcards to create files in multiple directories #7630

@trollyanov

Description

@trollyanov

[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.

Metadata

Metadata

Assignees

Labels

area-managementArea - Microsoft.PowerShell.Management module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions