Na to možná ani nemusíš nic programovat. Možná by to stačilo spustit pomocí příkazu sc.
Zpět do poradny