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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mightyqlikers
Creator III
Creator III

creating batch file from qlik sc

Hi all,

i am trying to create a batch file from qlik script to create a folder and move the files from one folder to newly created folder.

let vToday = text(date(Today(),'DD_MM_YYYY'));

set  vCreateFolder = 'Execute cmd.exe /C mkdir "C;\TEMP_DELTE_QVD\QVD\$(vToday)";';

Batch_Generate:

LOAD * INLINE [

    @Echo

    Rem

    $(vCreateFolder)

];

store Batch_Generate into Batch_Generate.bat(txt);


this is generating batch file but this is not creating folder because batch is creating script as below

@Echo

Rem

"Execute cmd.exe /C mkdir ""C;\TEMP_DELTE_QVD\QVD\11_10_2018"";"

it is appending double code in before execute and before folder path.

could somebody help me with this.

Regards

$@M.

0 Replies