Scilab 6.0.0
- Scilabヘルプ
- Files : Input/Output functions
- Directory
- Paths - Filenames
- copyfile
- deletefile
- dispfiles
- fileinfo
- findfiles
- fprintfMat
- fscanfMat
- getmd5
- getURL
- %io
- isfile
- listfiles
- listvarinfile
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- save_format
- scanf
- scanf_conversion
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
movefile
ファイルまたはディレクトリを移動する
呼び出し手順
movefile(source, destination) [status, message] = movefile(source, destination)
引数
- source
文字列.
- destination
文字列.
- status
整数: 処理ステータス.
- message
文字列: エラーに関するメッセージ.
説明
movefile(source, destination)は,
ファイルまたはディレクトリ
source(およびサブディレクトリ)を
をファイルまたはディレクトリdestination
に移動します.
sourceがディレクトリの場合,
destinationにファイルを指定することは
できません.
![]() | movefile
は,警告を発生せずに既存のファイルを置換します. |
[status, message] = movefile(source, destination)は,
sourceからdestination
に移動し,statusとmessageを返します.
どのようなオペレーティングシステムであろうと,
移動に成功した場合,statusは1となり,
messageは空になります ;
移動に失敗した場合,
statusは0となり,messageは空でなくなります.
例
copyfile(SCI+"/etc/scilab.start",TMPDIR+"/scilab.start") [status,message] = movefile(TMPDIR+"/scilab.start",TMPDIR+"/renamed_scilab.start")
参照
- copyfile — ファイルをコピー
| Report an issue | ||
| << mopen | Files : Input/Output functions | mput >> |
