How do I do 'dir /s /b' in PowerShell?

If you are using Powershell as a shell (and not as a script processor), you can simply type:
cmd /r dir /s /b

The /r flag tells cmd.exe to run the command and exit. In other words, you'll end at the same execution context.

For many commands, cmd /r is better than dealing with Powershell object-oriented architecture.

 

参考:https://*.com/questions/1479663/how-do-i-do-dir-s-b-in-powershell/39459273

上一篇:已有一个字符串s=Today is Monday. l am on holiday. How nice!‘加密算法为将大写字母后移动一位输出,将小写字母前移动一位输出。其它字不变


下一篇:How to Think in English