Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Double quotes on Execute statement

Hi all,

I'm trying to include in EXECUTE double quotes because i need it to perform a correct command in cmd:

I had it :

EXECUTE cmd.exe /C "Application.exe list=$(List) -logsOutput=logs/applog";


and it works perfectly, but if i insert in $(List) a String with space the Application.exe crashes.


I test it on cmd putting:


Application.exe list="String1;String 2; String String " -logsOutput=logs/applog


and it works too, but my problem now is that i don't be able to insert double quotes in EXECUTE statement:

EXECUTE cmd.exe /C "Application.exe list="$(List)" -logsOutput=logs/applog";

PS: I tried with chr(34) too and doesn't works.

Thanks in advance,

BR,

Ivan

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

I did it removing cmd and quotes:


EXECUTE cmd.exe /C "Application.exe list=$(List) -logsOutput=logs/applog";

like this:

EXECUTE Application.exe list="$(List)" -logsOutput=logs/applog;



It works, thanks for the support!

BR,

Ivan.

View solution in original post

10 Replies
PrashantSangle

Hi,

In your variable definition add it.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hi dreamer4‌,

I don't use a variable to do it, can you explain how i can do with it?

I try it putting all the string in a variable an then use EXECUTE Variable but it doesn't works..

BR

PrashantSangle

Hi,

How you assign value in List???

where you are creating List?

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hi,

I did it removing cmd and quotes:


EXECUTE cmd.exe /C "Application.exe list=$(List) -logsOutput=logs/applog";

like this:

EXECUTE Application.exe list="$(List)" -logsOutput=logs/applog;



It works, thanks for the support!

BR,

Ivan.

marcus_sommer

I think I would try something like this:

let vExecute = '"Application.exe list=' & '$(List)' & ' -logsOutput=logs/applog"';

EXECUTE cmd.exe /C $(vExecute);

- Marcus

Peter_Cammaert
Partner - Champion III
Partner - Champion III

What about

EXECUTE cmd.exe /C Application.exe list="$(List)" -logsOutput=logs\applog;

Best,

Peter

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or this?

EXECUTE cmd.exe /C "Application.exe list=""$(List)"" -logsOutput=logs\applog";

Best,

Peter

PrashantSangle

Good

Close the thread.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

This works too.

Thanks guys!