Created
October 31, 2018 22:49
-
-
Save netomx/42b3c5e063f01ce440a43446671895b2 to your computer and use it in GitHub Desktop.
Small batch for waiting on Veracrypt to mount a drive to open ownCloud.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment