Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 在winxp32中启动可执行文件之前确认IP_Powershell_Powershell 1.0 - Fatal编程技术网

Powershell 在winxp32中启动可执行文件之前确认IP

Powershell 在winxp32中启动可执行文件之前确认IP,powershell,powershell-1.0,Powershell,Powershell 1.0,你们的问题。我只有Powershell v1.0版,这使得这更加困难,这也是我第一次进入Powershell。我是一个linux/OSX的家伙 更糟糕的是,这是在一个托管系统上,所以如果它没有随winxp base安装一起提供,我就无法安装它 我需要执行一个基本的while循环,ping server1,一旦ping成功,启动task.exe 我能在technet和其他MS站点以及整个web上找到的所有帮助都是针对powershell v3或v4的 很抱歉成为一个noob:我不清楚V1会支持什么

你们的问题。我只有Powershell v1.0版,这使得这更加困难,这也是我第一次进入Powershell。我是一个linux/OSX的家伙

更糟糕的是,这是在一个托管系统上,所以如果它没有随winxp base安装一起提供,我就无法安装它

我需要执行一个基本的while循环,ping server1,一旦ping成功,启动task.exe

我能在technet和其他MS站点以及整个web上找到的所有帮助都是针对powershell v3或v4的


很抱歉成为一个noob:

我不清楚V1会支持什么,也不支持什么,也没有一个可以测试的系统,但我认为这样的系统应该可以工作:

do { $result = ping server1 }
until ( $result -match 'Received = [1-4]' )

& task.exe