Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
twanqlik
Creator
Creator

Executing a .BAT file, the handle is invalid

I'm trying to execute a simple .bat file (that works perfectly when run manually), however, for someone kind of reason Qlikview won't run it. 

Any idea's what might cause this? 🙂 

EXECUTE [..\8_Import\DeleteXMLFiles.bat];

The handle is invalid.JPG

2 Replies
Gysbert_Wassenaar

Are you sure the relative path really points to the .bat file you're trying to execute? Have you tried an absolute path?


talk is cheap, supply exceeds demand
pradosh_thakur
Master II
Master II

As Gysbert mentioned please try with the absolute path and along with that may be add cmd.exe or path to cmd.exe after execute statement. I have ran into error because of that as well.

EXECUTE cmd.exe any_switch_needed "absolute_path_of the file"
Learning never stops.