更新时间:2023-11-19 13:53:04
对于您的问题,我制作了此批处理文件:
For your question i made this batch file:
mkdir truedir
dir > truedir\fileone.txt
mklink /d symdir truedir
cd symdir
dir
我发现从命令提示符处获取到目录的符号链接的内容没有问题. Powershell 5.1(Win 10)也没问题:
And i have found no problem to get the content of the symblic link to a directory from command prompt. No problem also with powershell 5.1 (win 10):
Get-ChildItem C:\Users\<user>\OneDrive\Desktop\test2\symdir
您能给我们一个代码示例(批处理或powershell相同)来复制您的问题吗?
Can you give us a code example (batch or powershell is the same) to replicate your problem?