0

I want to copy files witch part of they folder name is same e.g ../example/test_n, n is from 1 to 15. I saw a resolution when using bash, we just need to write one line and it would be cp ../example/test* ..example/dest. And my question is, is there a equal operation in PowerShell?

1 Answer 1

1

Equivalent of your bash sample with a wildcard could be

Copy-Item C:\example\test* C:\example\dest\ -recurse

Assuming you don't need to have a control to limit the 1-15 range.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.