Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
FileTools[Rename] - rename a file
Calling Sequence
Rename(old, new, opt1)
Parameters
old
-
string; source filename
new
string; destination filename
opt1
(optional) name; argument
Description
The Rename(old, new) command moves the file old to the new location new.
The Rename function does not return anything.
The optional argument force controls Rename's behavior when a file named new exists. If force=false then an error is raised and the renaming does not occur. This is the default behavior. If force=true then the file is replaced by the renaming.
If either new or old refers to an open file, it is automatically closed before the move.
If the user does not have permission to perform the operation, an exception is raised.
Examples
The file "testfile" cannot be read because it has been renamed.
Error, (in fopen) file or directory does not exist
See Also
file_types, FileTools, FileTools[Binary][Close], FileTools[Binary][Open], FileTools[Remove], FileTools[Text][Close], FileTools[Text][Open], FileTools[Text][ReadLine], FileTools[Text][WriteLine], IO_errors
Download Help Document