Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rustyfishbones
Master II
Master II

Is it possible to create a batch file in the Qlikview Script

Hi All,

I have an execute that creates my folder structure as well as running the Extraction.

One of the folders I am creating is to hold my batch files.

Can I use Qlikview to create those batch files and have them moved to the batch files folder I just created

2014-03-21_1535.png

so after I create the BATCHFILES folder, I then want Qlikview to create the .BAT file too

Can this be done?

Regards

Alan

1 Solution

Accepted Solutions
rustyfishbones
Master II
Master II
Author

it's close,

but here is the correct answer I received from Stephen Redmond

BatFile:

Load

  'REM This is a batch file test' As [@echo off]

AutoGenerate(1);


For Each vFile in FileList('c:\temp\Folder1\*.txt')


  BatFile:

  Load

  'MOVE $(vFile) C:\Temp\Folder2' As [@echo off]

  AutoGenerate(1);

Next


Store BatFile into c:\temp\test.bat (txt);


Drop Table BatFile;


EXECUTE c:\temp\test.bat;

View solution in original post

4 Replies
rustyfishbones
Master II
Master II
Author

Is it possible?

maxgro
MVP
MVP

is that you want?

DIRECTORY;

Bat:

load 'echo pluto' as col1 AutoGenerate 1;

concatenate (Bat) load 'echo pippo' as col1 AutoGenerate 1;

STORE * from Bat into Bat.bat (txt);

rustyfishbones
Master II
Master II
Author

it's close,

but here is the correct answer I received from Stephen Redmond

BatFile:

Load

  'REM This is a batch file test' As [@echo off]

AutoGenerate(1);


For Each vFile in FileList('c:\temp\Folder1\*.txt')


  BatFile:

  Load

  'MOVE $(vFile) C:\Temp\Folder2' As [@echo off]

  AutoGenerate(1);

Next


Store BatFile into c:\temp\test.bat (txt);


Drop Table BatFile;


EXECUTE c:\temp\test.bat;

rustyfishbones
Master II
Master II
Author

Stephen responded to my request through his blog

Qlik Tips

check it out it's fantastic

Regards

Alan