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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
lawrance
Creator II
Creator II

Execute Command with variable

Hi all,

I try to delete the CSV files in particular folder using Execute command but it is not deleting.

The following scenarios which I tried,

S1:

EXECUTE CMD.EXE /C del "$(v_Fldr_MTR_RDG_CSV)COMED_MTR_RDG_*.csv";

EXIT Script;

S2:

EXECUTE CMD.EXE /C del "$(v_Fldr_MTR_RDG_CSV)COMED_MTR_RDG_*.csv";

EXIT Script;

S3:

EXECUTE CMD.EXE /C del "..\..\..\Shared\Shared_Common_Files\Static_Data\COMED_MTR_RDG_*.csv";

EXIT Script;

Also I have enabled the below options

option_01.png

Note: The variable contains folder path location ..\..\..\Shared\Shared_Common_Files\Static_Data\

When I run the above script in QMC it is deleting.

Thanks,

Lawrance A

Labels (1)
10 Replies
vishsaggi
Champion III
Champion III

Did you try without the quotes, it worked for me without Quotes. Just checking.