Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qliksol
Contributor II
Contributor II

DOS command to Export a Table from QlikView QVF

Howdy,

I have a chart in a QVF that is updated each week.  I would like to run a DOS command to export the data to a CSV file.

I've read quite a few posts, but I'm not seeing anything like this.  Is it possible?

Thanks!

Labels (1)
10 Replies
JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @Qliksol 

I got the solution for you without doing a reload. 

The Document Tigger that you added for post reload - Just change this to OnOpen. See below 

JandreKillianRIC_0-1737012193823.png

 

Here is the new .bat file - You will see there is a 30 second wait time - This will allow for the application to open and the macro to run. Adjust this if needed. 

@echo off
REM Start the QlikView application and get its Process ID (PID)
start "" "c:\Program Files\QlikView\QV.exe" "C:\Users\Jandr\OneDrive\Desktop\Test.qvf"
for /f "tokens=2" %%a in ('tasklist /fi "imagename eq QV.exe" /fo list ^| findstr "PID:"') do set PID=%%a

REM Wait for 30 seconds
timeout /t 10 /nobreak >nul

REM Close the specific instance of QV.exe using its PID
taskkill /pid %PID% /f

 

This .bat file will open the QVF - Run the macro using the trigger and then close the application. 

Please let me know if this is the solution you where looking for. 

Regards - Jandre

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn