Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
i am trying to trigger a .bat from within a QV script. The .bat does nothing but pulling from a git repository. It is in the same directory as the git repo files are in.
git pull https://AccessTokenUser:AccessTokenUserPassword@GIT.repository
running the .bat from the Windows Explorer directly by double clicking it, works fine. The pull request is sent and my sources are updated. Running this from within my script:
execute cmd.exe /C "git pull https://AccessTokenUser:AccessTokenUserPassword@GIT.repository";
seems to be doing nothing but opening the command line window for a second and closing it. No error message. Nothing.
I should add that the user i am using on the machine that QV is running on has no git account. Thats why i am working with the access toking in the URL, but i doubt its a permission issue rather than a script / syntax issue in QV.
Thanks for some advise!
Found the fix myself. The .bat was missing a cd to the git directory where the bat file resides...Working fine now 🙂
Found the fix myself. The .bat was missing a cd to the git directory where the bat file resides...Working fine now 🙂