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: 
yanivvl0
Creator III
Creator III

Why exec Rename cmd Do not work? Security ?

hi to all  ,

i am trying to exec:

EXECUTE cmd.exe /C rename 'D:\AA.XLSX'  'D:\BB.XLSX' ; 

BUT i get this warning :

Capture1.PNG

Although had checked the security before :

Capture2.PNG

when i check Oerride option it doeas NOTHING!?

what is wrong ?  ,  plz help..

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

The REN/RENAME command takes quotes " instead of single quotes ' for the file parameters.

View solution in original post

9 Replies
pradosh_thakur
Master II
Master II

Well. It depends upon what version of Qlikview you are using.

Go through the below link. It's clearly explained. Let me know if you need more help or screenshot etc.

https://qlikviewcookbook.com/2016/01/authorizing-the-script-execute-statement/

regards

Pradosh

Learning never stops.
olivierrobin
Specialist III
Specialist III

hello

be careful that your command is incorrect. You can't put a path in the renamed file name

EXECUTE cmd.exe /C rename 'D:\AA.XLSX'  'BB.XLSX' ; 

yanivvl0
Creator III
Creator III
Author

thanks Robin  , i tried that but nothing happend  .

in the exec log it looks like it do sometheing

Capture3.PNG

but , AA REMAIN the same ..

olivierrobin
Specialist III
Specialist III

are you sure file AA.XLSX is not in use by some process ?

pradosh_thakur
Master II
Master II

Can you try putting the fie to be renamed in the same directory of cmd.exe and try . If this works then there is some error in the command else security has to be corrected.

Learning never stops.
yanivvl0
Creator III
Creator III
Author

hi Thakur , my Ver is 12.1 ,

i try to run it strait on the server but still -  no good ..

Miguel_Angel_Baeyens

The REN/RENAME command takes quotes " instead of single quotes ' for the file parameters.

yanivvl0
Creator III
Creator III
Author

yea , i'm sure ' its fictive file , its close  , and nobody needs it.

yanivvl0
Creator III
Creator III
Author

OK Miguel - this is the thing - THANKS !!