Commandline

Does Groupy have a Commandline syntax for turning Groupy On/Off?

6,467 views 5 replies
Reply #1 Top

Hello,

I have forwarded your question to Stardock Support team for their assistance. Please keep an eye on this thread for any updates. We appreciate your feedback and patience.

 

Basj

Stardock Community Assistant.

Reply #2 Top

Does Groupy have a Commandline syntax for turning Groupy On/Off?
End of quote

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

Reply #3 Top

This is class.  Thanks S'D much appreciated.

Reply #4 Top

This doesnt work.  All it does is stop groupy services which weirdly leaves groupy still running. Does none off Stardocks software have written commandline parameters in the exe files?

Reply #5 Top

Quoting ljferdinand, reply 4

This doesnt work.  All it does is stop groupy services which weirdly leaves groupy still running. Does none off Stardocks software have written commandline parameters in the exe files?
End of ljferdinand's quote

Try this under the get admin code instead:

sc query "Groupy" | findstr /i "RUNNING" 1>nul 2>&1 && (
echo Groupy is running. Stopping...
net stop Groupy
"C:\Program Files (x86)\Stardock\Groupy\GroupyCtrl.exe" unload
) || (
echo Groupy is not running. Starting...
net start Groupy
)
Pause