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

call CMD window silent

$
0
0

I have this code.

$Citrix="\\server1\scripts\Citrix Client\v.4.2.1\Silent\InstallCitrix.cmd"
$Run1="\\server1\scripts\Citrix Client\v.4.2.1\Silent\RunCitrix.exe"
$Done="\\server1\scripts\Citrix Client\v.4.2.1\Silent\Done.exe"

$EXE1='C:\Program Files\Citrix\ICA Client\wfica32.exe' | foreach-object { "{0}`t{1}"-f$_.Name, [System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileVersion}
$EXE1.Trim()
if ($EXE1-like'*14.2*') {EXIT} ELSE {&$run1; &$Citrix}
&$Done

It works fine.  The only issue is when it runs you see the CMD window (& $Citrix).   How do I make this CMD window silent or not appear?  

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles