SAVEAS
Top  Previous  Next


Saves information to a file. The SAVEAS command can save different information to a file. You can add parts to the original file name by using the + syntax (see Examples). The built-in variable !NOW is helpful in this context.

Syntax

SAVEAS TYPE=(CPL|MHT|HTM|TXT|EXTRACT|BMP) FOLDER=folder_name FILE=file_name


Parameters

TYPE
Specifies the type of the save information. The following options are available:
   CPL
   The complete web page is saved. The files and images are saved separately and stored in a folder.
   MHT
   The web page plus images are saved in a single file (Web Archive).
   HTM
   The web page source is saved with no images. If the page has frames, all framed HTML pages are saved automatically.
   TXT
   Only the web page text is saved; all HTML tags are omitted.
   EXTRACT
   The value of the variable !EXTRACT is saved in CSV format.
   BMP
   A screenshot of the web page is saved.


FOLDER
Specifies the folder in which the file is saved. Use * for the standard download folder specified in the Paths tab of the Options dialog, e.g. C:\Program Files\iMacros\downloads\.

FILE
Specifies the file name under which the file is saved. If no file extension is given, the default file extension is used. If you use FILE=*, the default file name extract.csv is used. Use +something to add something to the original file name before the file extension.


Examples

Save the current webpage in a file called homepage_current.mht

SAVEAS TYPE=MHT FOLDER=* FILE=homepage_current

Save a screenshot of the current page with the current date in the original filename

SAVEAS TYPE=BMP FOLDER=C:\Screenshots FILE=+{{!NOW:ddmmyyyy}}

See Also

ONDOWNLOAD, EXTRACT



Page URL http://www.iopus.com/imacros/help/cmd_saveas.htm