Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Incremental Load Scenarios: Move or Delete Source Files

I am converting a QVW with a QVD into an Incremental Load with an automated Managed File Transfer to move my source files (CSV) into my QV server folder. I've found references on how to do an insert but I don't see anything explaining what to do with the old files. I will have a LOT of files on a daily or weekly basis. How do I move or delete them once used?

Labels (2)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

execute can be used to run most windows commands
so something like below should work.
execute cmd.exe /c copy *.csv \backuppath\

View solution in original post

7 Replies
dplr-rn
Partner - Master III
Partner - Master III

Do you mean delete older csv files
try something like
execute cmd.exe /c del *.csv;
replace * with your logic
cbaqir
Specialist II
Specialist II
Author

Yes! Thanks. I didn't know it was so easy. Just put that in the script after the QVD is updated?
dplr-rn
Partner - Master III
Partner - Master III

dplr-rn
Partner - Master III
Partner - Master III

Yes after you have finished reading relevant csvs and stored it.
or you could move it to an archive folder

personally i am vary of execute because of security . not sure when qlik may disable it.
dplr-rn
Partner - Master III
Partner - Master III

please close thread if it helped
cbaqir
Specialist II
Specialist II
Author

Can I use the script to move the files to an archive folder?
dplr-rn
Partner - Master III
Partner - Master III

execute can be used to run most windows commands
so something like below should work.
execute cmd.exe /c copy *.csv \backuppath\