309
40
In a cmd prompt, you can run two commands on one line like so:
ipconfig /release & ipconfig /renew
When I run this command in PowerShell, I get:
Ampersand not allowed. The `&` operator is reserved for future use
Does PowerShell have an operator that allows me to quickly produce the equivalent of &
in a cmd prompt?
Any method of running two commands in one line will do. I know that I can make a script, but I'm looking for something a little more off the cuff.
To be nerdy... It's very easy to search for it. It's just quite hard to get a relevant set of hits. :) (+1 for great question) – Konrad Viltersten – 2014-06-27T16:01:59.503
2
Similar to conditional execution (&& and ||) in powershell.
– JamesThomasMoon1979 – 2018-12-29T22:30:33.5935Fun Note: Between Serial ports and Serialisation, this question is virtually impossible to search for. – David – 2013-06-26T17:25:20.260