Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
yanivvl0
Contributor 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..

Tags (4)
1 Solution

Accepted Solutions

Re: Why exec Rename cmd Do not work? Security ?

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

View solution in original post

9 Replies
pradosh_thakur
Honored Contributor II

Re: Why exec Rename cmd Do not work? Security ?

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
Valued Contributor II

Re: Why exec Rename cmd Do not work? Security ?

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
Contributor III

Re: Why exec Rename cmd Do not work? Security ?

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
Valued Contributor II

Re: Why exec Rename cmd Do not work? Security ?

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

pradosh_thakur
Honored Contributor II

Re: Why exec Rename cmd Do not work? Security ?

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
Contributor III

Re: Why exec Rename cmd Do not work? Security ?

hi Thakur , my Ver is 12.1 ,

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

Re: Why exec Rename cmd Do not work? Security ?

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

View solution in original post

yanivvl0
Contributor III

Re: Why exec Rename cmd Do not work? Security ?

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

yanivvl0
Contributor III

Re: Why exec Rename cmd Do not work? Security ?

OK Miguel - this is the thing - THANKS !!