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

delete qvd's from folder by scirpt

Hi all,

I am using below scirpt to delete all the QVD files from a path. The path is stored in a variable i.e; vWithCT.

when i reload the application, it is opening the command prompt and asking Yes/No ? ,if i click on Yes it is deleting the qvd's from folder.

Now what i am trying is it should not ask a question whether to delete like yes/no , it should directly delete the files.

How can i do this? Please check my written script.

IF(ScriptErrorCount=0) then

set vError = 0;

execute cmd.exe /c del  "*.qvd" "$(vWithCT)";

ELSE

set vError = 1;

ENDIF

Thanks in advance.

1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check the "Can execute external programs" option from the settings in the Edit script dialog.

     For more info check out this link http://community.qlik.com/message/142327#142327.

Celambarasan