The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "FILEDELETE"
(→Notes) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
− | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]]=== | + | === Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] <!--[[Image:Ff-icon.png|Firefox]]-->=== |
FILEDELETE NAME=file_name | FILEDELETE NAME=file_name | ||
Line 18: | Line 18: | ||
* Name | * Name | ||
− | *:Name of the file to be deleted. | + | *:Name of the file to be deleted. |
+ | |||
+ | === Notes === | ||
+ | |||
+ | # [[Image:Ff-icon.png|Firefox]] This command is also available in legacy iMacros for Firefox (9.0.3 and older) | ||
=== Examples === | === Examples === |
Revision as of 08:58, 12 July 2019
Deletes the file specified by Name. If no directory is specified in Name the file is assumed to lie in the iMacros Downloads subdirectory (e.g. C:\Users\Me\iMacros\Downloads). You can also provide absolute paths to the file (e.g. C:\myData\lastDownloads.csv). This command can be used to delete an old extraction file to avoid appending extraction results.
Notes:
- In the iMacros Browser and Internet Explorer, paths relative to the Downloads folder (e.g. Extracts\myTable.csv) are supported.
- The file name can be surrounded by double quotes (if there is a space in the path, for instance). In this case, the backslashes have to be escaped by another backslash (as in "c:\\My Temp Files\\Temp.txt").
Syntax
FILEDELETE NAME=file_name
Example:
FILEDELETE NAME=c:\output\mydata.csv
Parameters
- Name
- Name of the file to be deleted.
Notes
Examples
Consider the case that a macro is extracting something from a webpage and saves it to the same file. Usually new data is appended to existing files. If you want the file to contain only the latest data, delete the file before saving.