Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Troy1
Contributor III
Contributor III

Execute and version 12 - failing.

We have script that ran perfectly fine in 11.2 version yet stop working in version 12. Below is script.

//Map drive:

EXECUTE cmd.exe /C "net use m: "c:/temp"";

//Change directory to mapped drive

Directory m:\

// Execute bat file

Execute cmd.exe /c "sample.bat";

simle bat file that use WinSCP to copy file from ftp site. I have tested bat file and run completely fine by itself. Below is content

@echo off

"c\WinSCP\WinSCP.com" ^

   /command ^

    "open ftp://*******@##.##.##.##" ^

    "cd /usr/temp/" ^

    "mget startlogs.txt" ^

exit

Error:

General Error Execute cmd.exe /c "sample.bat"

Settings check:

All settings related to execute commands are checked and confirmed, ie script settings, ini file to allow execute, user preference, document properties.

1 Reply
arbernardez
Partner - Contributor III
Partner - Contributor III

Hi,

have you tried set AllowExecuteCommand=1 in the file

“C:\Windows\System32\config\systemprofile\AppData\Roaming\QlikTech\QlikViewBatch\settings.ini" ?

you can find more info in Rob's post here QV 12.10 “Can Execute External Programs” is back | Qlikview Cookbook

Regards