Skip to content

Instantly share code, notes, and snippets.

[
{
"action": "talk",
"voiceName": "Penelope",
"text": "Alerta Walmart: Laptop"
}
]
@netomx
netomx / start_ownCloud.bat
Created October 31, 2018 22:49
Small batch for waiting on Veracrypt to mount a drive to open ownCloud.
echo off
cls
echo Waiting on VeraCrypt...
:no
PING localhost -n 2 > NUL
IF EXIST Y:\ (GOTO yes) ELSE (GOTO no)
:yes
tasklist /FI "IMAGENAME eq owncloud.exe" 2>NUL | find /I /N "owncloud.exe" >NUL
if "%ERRORLEVEL%"=="0" (echo ownCloud is already being executed) ELSE start "ownCloud" "c:\Program Files (x86)\ownCloud\owncloud.exe"