Does Groupy have a Commandline syntax for turning Groupy On/Off?
You can use the following (batch file syntax) to start / stop Groupy. When run, it will start if stopped, stop if started....
@Echo off
:: BatchGotAdmin credit: https://sites.google.com/site/eneerge/scripts/batchgotadmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
sc query "Groupy" | findstr /i "RUNNING" 1>nul 2>&1 && (
echo Groupy is running. Stopping
net stop Groupy
) || (
echo Groupy is not running. Starting
net start Groupy
)
Pause
----------------
Sean Drohan
Stardock Customer Service Manager