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

Announcements
Discover the Trends Shaping AI in 2026: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

directory

hi all,

is there a command to delete a directory  using qlikview script?

for ex: after the report runs --at the end the script we should delete that directory

13 Replies
Not applicable
Author

hi all,

my current scenario is .. I need to move a specific folder with the folder name

for ex 12122015....

in a month I may receive this folder in any of the dates

11122015 or 10122015 or 23122015 keeping dec as example

so I tried the below making a variable for date as todays date.. it works good. but as the folders dates are not the same ..in everymonth you may receive this folder on any of the dates .so today does not work ..so in a month if today is 24th I may get the folder dated 09202015

EXECUTE cmd /C move C:\Data\$(Date).in  D:\processed;

jonas_rezende
Specialist
Specialist

Hi, benny1409.

I believe that the  simple form, will be Map Network drive, on machine with Qlikview Desktop installed.

In bat file, you utilize the unit mapping and the final path. Ex.: F:\archive\qlik.

MapNetworkdrive.png

Not applicable
Author

hi Jonas,

maping is good. but how could I move .in folder specified with dates.

11122015 or 10122015 or 23122015 keeping dec as example

so I tried the below making a variable for date as todays date.. it works good. but as the folders dates are not the same ..in everymonth you may receive this folder on any of the dates .so today does not work ..so in a month if today is 24th I may get the folder dated 09202015

if I put *.in .in the move command .it does not work

jonas_rezende
Specialist
Specialist

Hi, benny1409.

The command cmd require the extension .exe. Ex.: EXECUTE cmd.exe /C move C:\Data\$(Date).in  D:\processed;

Note: verify if variable Date is been initialized with value. Including, equal the name of the folder.