EmEditor Home - EmEditor Help - Command Reference - File category

Rename and Save command

Summary

Renames and Saves the current file.

Description

Unlike the Save As command, this command renames the current file, then deletes the old file. This command displays the Save As dialog box, which allows you to enter a file name to save the currently opened file. After you specify a new file name, the prompt message "Are you sure you want to delete ...?" appears. Selecting Yes will delete the file with the previous name. Selecting No will not delete the previous name, but save the file as the new name, equivalent to the behavior of the Save As command.

If you want to save the file as a different name but do not want to delete the previous file, use the Save As command instead.

How to Run

Plug-in Command ID

Macros

[JavaScript]

editor.ExecuteCommandByID(4252);

[VBScript]

editor.ExecuteCommandByID 4252

Copyright 2003-2014 by Emurasoft, Inc.