user1054637
user1054637

Reputation: 707

Passing arguments to Powershell Start-Job

I'm looking to start a tortoiseSVN update as a background process but I'm having no luck

Start-Job tortoiseproc -ArgumentList "/command:update /path:C:\MyDir /closeonend:2;"

Any ideas?

Upvotes: 2

Views: 1717

Answers (1)

Shay Levy
Shay Levy

Reputation: 126932

I don't have tortoiseSVN installed but it looks like you're missing the main scriptbloc of the job. Does this work?

 Start-Job { tortoiseproc $args} -ArgumentList "/command:update /path:C:\MyDir /closeonend:2"

Upvotes: 1

Related Questions