Hi everybody,
I am on Windows 8.1 latest updates
Nextcloud Client 3.4.1
I recently discovered that there are some commannd line arguments available on the nextcloud client (Windows). So I wanted to use these to solve an ongoing problem I have.
Short description of what I want to use it for:
I need to modify some files viea a batch script. This script creates a temporary file and sometimes Nextcloud syncs this back and my data get corrupt becasue the process was not finished.
To work around this I just want to stop the running instance with nextcloud.exe -q, that works like charm.
But at the end of my batch file of course I want to reastrt nextcloud by calling nextcloud.exe or nextcloud.exe --background
At this point Nextcloud launches but totally interrupts the running batch file and I assume this is not how it is supposed to be.
Actual Problem description
It seems it totall crashes the process and I can’t even ctrl+c out of the batch script anymore. It seems totally stuck and I need to kill it.
If I just manually execute from the Windows Command-Line, it launches and let’s me continue with the next command. So behavior looks different.
Usually if I don’t want to wait for a program to finish and keep the batch running, I put a “start” infront of the program that I launch. That doesn’t work here either.
What happens then is: I get a new command prompt that does not launch nextcloud at all. Also not as it is supposed to behave, I guess.
Did I try to make sure it is not a problem of my batch file?
Yes Indeed, I striped down everything that is really doing stuff and left the skeleton.
::@echo off
setlocal enabledelayedexpansion
:setting
set _ver=0.0.0
set _nextcloud="C:\Program Files\Nextcloud\Nextcloud.exe"
title %~nx0 Version %_ver%
pushd %~dp0
:start
Echo stoppe Nextcloud
%_nextcloud% -q
Echo do something
ping 127.0.0.1 > NUL
goto ende
:error
echo Fehler: Some Fancy Error Message
pause
:ende
echo starte Nextcloud
::start %_nextcloud%
%_nextcloud%
endlocal
pause
ping 127.0.0.1 > NUL
exit
Am I doing something stupidly wrong or did I found a bug?
Thanks for any help much appreciated