How do I get the current username in Windows PowerShell?

后端 未结 15 2780
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 01:35

How do I get the current username in Windows PowerShell?

15条回答
  •  没有蜡笔的小新
    2020-11-28 02:05

    1. get-content "cm.txt"
    2. write-host "entr file name" $file = read-host get-content $file
    3. $content = get-content "cm.txt"
    4. $content = get-content "cn.txt" for each ($line in $count) {write-host $line}

提交回复
热议问题