20 lines
576 B
Batchfile
20 lines
576 B
Batchfile
@echo off
|
|
|
|
cd "C:\Users\def\Nextcloud\Calibre Portable"
|
|
if exist !!STARTUP_lock.dat (
|
|
echo "We are locked by computer:"
|
|
type !!STARTUP_lock.dat
|
|
echo ""
|
|
echo "Close this window to abort running"
|
|
echo "... or hit a key to run anyway ..."
|
|
echo ""
|
|
pause
|
|
)
|
|
|
|
echo %COMPUTERNAME% > !!STARTUP_lock.dat
|
|
|
|
echo "Start-Process -FilePath .\calibre-portable.exe -Wait; del !!STARTUP_lock.dat"
|
|
start PowerShell.exe -windowstyle hidden -command "Start-Process -FilePath .\calibre-portable.exe -Wait; del !!STARTUP_lock.dat"
|
|
echo "Batch is done!"
|
|
echo "bye"
|
|
::END
|