iMacros: "FILEDELETE NAME=file_name" does'n work

Discussions and Tech Support specific to the iMacros for Chrome extension.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
tusiromania
Posts: 5
Joined: Tue Feb 04, 2020 11:09 pm

iMacros: "FILEDELETE NAME=file_name" does'n work

Post by tusiromania » Fri Sep 16, 2022 7:09 pm

I'm trying to make an iMacros script that saves the last loop, in case iMacros gives an error. All god, but FILEDELETE NAME=file_name does'n work for me. I tried different ways, I end up changing the original folders, but still not working.

I have this error:

Code: Select all

SyntaxError: unknown command: FILEDELETE at line 11

Code: Select all

SET !FOLDER_DOWNLOAD D:\IMACROS\DOWNLOADS
SET !FOLDER_DATASOURCE D:\IMACROS\DOWNLOADS
SET !DATASOURCE RELEASE769.csv
SET !DATASOURCE_LINE 1
SET !LOOP {{!COL1}}
SET LASTLOOP EVAL("{{!COL1}}+1")

 
 
'FILEDELETE NAME=RELEASE769.csv
FILEDELETE NAME=D:\IMACROS\DOWNLOADS\RELEASE769.csv

WAIT SECONDS=1
ADD !EXTRACT {{LASTLOOP}}
ADD !EXTRACT {{!NOW:yyyy-mm-dd<SP>La<SP>ora:<SP>hh<SP>si<SP>nnmin}}

'SAVEAS TYPE=EXTRACT FOLDER=* FILE=RELEASE769
SAVEAS TYPE=EXTRACT FOLDER=D:\IMACROS\DOWNLOADS FILE=RELEASE769

am using (FCI): iMacros for CR v10.1.1 'PE', CR v105.0.5195.102 (_x64), Win10_x64. ('CR' = 'Chrome' / 'PE' = 'Personal Edition')

Thank you so much for support
techimac
Posts: 466
Joined: Fri Feb 20, 2015 9:27 pm

Re: iMacros: "FILEDELETE NAME=file_name" does'n work

Post by techimac » Sat Sep 17, 2022 10:44 am

Maybe command is not supported
Available for custom iim, javascript iMacros scripts
tusiromania
Posts: 5
Joined: Tue Feb 04, 2020 11:09 pm

Re: iMacros: "FILEDELETE NAME=file_name" does'n work

Post by tusiromania » Sat Sep 17, 2022 3:12 pm

Hi there

do you know other iMacros commands to delete a file?

thank you
techimac
Posts: 466
Joined: Fri Feb 20, 2015 9:27 pm

Re: iMacros: "FILEDELETE NAME=file_name" does'n work

Post by techimac » Sat Sep 17, 2022 3:53 pm

There is no other command
If you use API
then you can delete the file depending upon what you use

if website opens in older browser then use
Firefox56 / Palemoon 28.1
iMacros 8.9.7
Available for custom iim, javascript iMacros scripts
tusiromania
Posts: 5
Joined: Tue Feb 04, 2020 11:09 pm

Re: iMacros: "FILEDELETE NAME=file_name" does'n work

Post by tusiromania » Sat Sep 17, 2022 11:55 pm

can I run a batch file inside the .iim file? to delete the file? or javascript, anything else?
techimac
Posts: 466
Joined: Fri Feb 20, 2015 9:27 pm

Re: iMacros: "FILEDELETE NAME=file_name" does'n work

Post by techimac » Sun Sep 18, 2022 2:09 am

No

Get Enterprise trial and use VBS / VBA

or if you know any way to execute bat file from html then you can try
"run bat file from browser" Search in google and see if there is any solution
Available for custom iim, javascript iMacros scripts
Post Reply