Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ssriramin19
Contributor III
Contributor III

execute cmd delete from script

Hello Everyone, 

The excel file needs to be deleted from the share path , so I am writing the execute command. But file is not getting deleted .

This is the execute command 

EXECUTE cmd.exe /C Del "\\SESKWQVPPD01\QlikView\SourceDocs\Otif\PreProduction\1_Source_Data\RCA\$(vFile).xls";

 

Can anyone please suggest me what is wrong & what is the syntax for execute command to delete the excel file from the script 

 

Thanks - Sriram

 

6 Replies
ssriramin19
Contributor III
Contributor III
Author

Can any one please help me on this delete file from a folder
punitpopli
Specialist
Specialist

Check if your variable is populating correctly.

if not then try to break the path, file name and file extension, this should work.

ssriramin19
Contributor III
Contributor III
Author

Even When I tried to delete excel file from my local system , I am getting following error
EXECUTE cmd.exe/C Del "C:\Users\kglt280\Documents\requirements_2\New folder (8)\Vietnam RCA Template.xlsx";

Can anyone please help me on this on how to resolve the error ?

Please suggest
punitpopli
Specialist
Specialist

check if you had read write permission on the folder you are performing action
ssriramin19
Contributor III
Contributor III
Author

Will execute command work in QV version 12 ? I am unable to perform the delete the file using execute command in version 12 .

The Cmd.exe/C Del "\\ file name" works properly in CMD .
Please suggest
punitpopli
Specialist
Specialist

check if below setting are enables in your system