-1

GPO で実行される powershell スクリプトがあります。その GPO 内でも、テキスト ファイルを開く必要があります。スクリプトがスクリプトと同じディレクトリで実行されないため、テキスト ファイルのパス情報を取得できません。

どうにかしてテキストファイルを開く必要があります。どうすればいいのですか?

4

1 に答える 1

0

I can't fully understand what you're trying to do, but if I've guessed right then you want the path of the script while its been executed? If that's the case then use this variable:

$MyInvocation.MyCommand.Path
于 2013-04-30T20:30:11.017 に答える