English 中文(简体)
通过PowerShell在同一夹中执行
原标题:Run executable in the same folder via PowerShell
  • 时间:2018-01-23 09:15:12
  •  标签:
  • powershell

我有一份权力书,我想用同一手法进行迫害:

Run Tests.ps1

.
unitlite-runner.exe

当我正确点击“探索者”的文字并选择Execute with Powerhell/strong>。 我有以下错误:

Die Benennung ".
unitlite-runner.exe" wurde nicht als Name eines Cmdlet, einer
Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen
Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten),
und wiederholen Sie den Vorgang.
Bei C:UsersTestDesktopMyScriptsRunTests.ps1: 5 Zeichen:23
+ .
unitlite-runner.exe <<<<
    + CategoryInfo          : ObjectNotFound: (.
unitlite-runner.exe:String)    [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Which basically translates to:

The name ". unitlite-runner. exe" was not specified as the name of a cmdlet, a function, a script file or an executable program. checking enter the spelling of the name or whether the path is correct (if it contains) and repeat the procedure.

问题回答

似乎我找到了答案。 问题不在于强权或文字。 相反,它有自由指挥官。

当我通过背景菜单管理文字时,自由指挥官似乎并未正确确定工作目录(因为无法找到可起诉者)。 当我用双点击来管理该笔文字时,它只做罚款。





相关问题
Mutually exclusive powershell parameters

SCENARIO I m writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET 3.5 the cmdlet requires 3 arguments. my intended grammar of the cmdlet is something like this: cmdletname [foo|...

Run a program from PowerShell with timeout

I ll write a script that runs a program and wait for it finished. But if the program is not finished within a specified time I want that the program is killed.

How to transpose data in powershell

I have a file that looks like this: a,1 b,2 c,3 a,4 b,5 c,6 (...repeat 1,000s of lines) How can I transpose it into this? a,b,c 1,2,3 4,5,6 Thanks

Powershell v2 remoting and delegation

I have installed Powershell V2 on 2 machines and run Enable-PsRemoting on both of them. Both machines are Win 2003 R2 and are joined to the same active directory domain and I can successfully run ...

PowerShell -match operator and multiple groups

I have the following log entry that I am processing in PowerShell I m trying to extract all the activity names and durations using the -match operator but I am only getting one match group back. I m ...