How do I get a file path without filename in PowerShell?

后端 未结 0 1456
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 07:28

I have C:\\Temp\\MyFolder\\mytextfile.txt in a variable called $file

I want C:\\Temp\\MyFolder\\ in another variable.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题