Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Calling script with &

$
0
0

I have this code that works fine. 

$call1 = "\\server\scripts\MyUtility.exe"

&$call1

The issue I have is when the .exe is called a CMD window pops up for a brief moment. It is calling PowerShell.exe based on the CMD window title.  Is there anyway to suppress this window when calling with the & character?

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles