header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Run scripts from Powershell without waiting till they exit
Last Post 13 Feb 2008 02:52 PM by halr9000. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ahoferUser is Offline
New Member
New Member
Posts:4

--
13 Feb 2008 01:25 PM  

Hi,

I've got a Problem again. How can I start subscripts without waiting till they exit? I search the same command like start (without /wait) in cmd.

I thought that this should work:($i in $config.Objs.Locations.Location)$location = $i.Name"& ""'C:\path\script.ps1'""" $location $tempserver

   }

But it doesn't. It starts each ps1 file after the other, not at the same time.

Then I tried

[System.Diagnostics.Process]::Start("powershell","C:\path\script.ps1").

But I'm not able to get this working, because I can't insert the arguments $location and $tempserver without error.

Do you have any suggestions?

Thanks in advance.

Greets ahofer

 

 

   {

        powershell

ahoferUser is Offline
New Member
New Member
Posts:4

--
13 Feb 2008 01:48 PM  
Sorry for the double posting, but I can't see an edit button and how you can see there are some problems with the topic. I've pasted the code here: http://paste.ubuntu-nl.org/55843/
halr9000User is Offline
Basic Member
Basic Member
Posts:303

--
13 Feb 2008 02:52 PM  
FYI, we are working on the forum issues you've raised.
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer