Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
xyz_1011
Partner - Creator
Partner - Creator

CMD from Script

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!

Labels (1)
1 Solution

Accepted Solutions
xyz_1011
Partner - Creator
Partner - Creator
Author

Found the fix myself. The .bat was missing a cd to the git directory where the bat file resides...Working fine now 🙂

View solution in original post

1 Reply
xyz_1011
Partner - Creator
Partner - Creator
Author

Found the fix myself. The .bat was missing a cd to the git directory where the bat file resides...Working fine now 🙂