Script opens server in background, but I want a window; runas issue
i'm trying game server setup scripts make sure stays date, , there's line here that's particularly troubling. whenever following line runs, opens "runserver.cmd" in background, whereas if "runserver.cmd" manually executed, opens in window.
runas /trustlevel:0x20000 "$installdirectory\shootergame\saved\config\windowsserver\runserver.cmd"
if use powershell command start-process have ability define windowstyle
-windowstyle <processwindowstyle> {normal | hidden | minimized | maximized}
you can find out more on following page: https://technet.microsoft.com/en-us/library/hh849848.aspx
hope helps.
regards,
ryan
Windows Server > Windows PowerShell
Comments
Post a Comment