Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Running butler.exe in silent mode

A topic by tbyc created Jun 22, 2021 Views: 443 Replies: 1
Viewing posts 1 to 2

Hi,

I have a C# application that Process.Start(butler.exe) for offline usage, is there way to start butler in silent mode?

Thanks!

(+1)

To my knowledge that’s currently not possible.

There is a workaround for C# by using RedirectStandardOutput:

using (Process butler = new Process())
{
    butler.StartInfo.FileName = "butler.exe";
    butler.StartInfo.Arguments = "your butler args";
    butler.StartInfo.UseShellExecute = false;
    butler.StartInfo.RedirectStandardOutput = true;
    butler.StartInfo.RedirectStandardError = true;              
    butler.Start();
    butler.WaitForExit();
}

This is basically the example from the ms docs. :)