Navigation

Operators and Keywords

Function List:

C++ API

movefile.m File Reference


Functions

 if (ispc()&&!isunix()&&isempty(file_in_path(EXEC_PATH,"mv.exe"))) cmd
endif if (nargin==2||nargin==3) if(!(ischar(f1)||iscellstr(f1))) error("movefile
 if (isdir &&length(p1) > max_cmd_line) l2
 while (!isempty(f1)) p1
 f1 (1)
 while (!isempty(f1)&&(length(p1)+length(f1{1})+l2< max_cmd_line)) p1
endwhile if (ispc()&&!isunix()&&!isempty(file_in_path(EXEC_PATH,"cp.exe"))) p1
 if (err< 0) status
endif endif else print_usage ()

Variables

 function [status, msg, msgid]
 status = true
 msg = ""
 msgid = ""
 cmd_force_flag = "/Y"
else cmd = "mv"
 p2 = tilde_expand (f2)
 endif [err, msg] = system (sprintf ("%s %s \"%s\"", cmd, p1, p2))

Function Documentation

f1 (  ) 

if (  ) 

endwhile if ( ispc()&&!isunix()&&!isempty(file_in_path(EXEC_PATH,"cp.exe"))   ) 

if ( isdir &&  lengthp1,
max_cmd_line   
)

endif if ( nargin  = = 2 || nargin == 3  ) 

if ( ispc()&&!isunix()&&isempty(file_in_path(EXEC_PATH,"mv.exe"))   ) 

endif endif else print_usage (  ) 

while ( isemptyf1)&&(length(p1)+length(f1{1})+l2< max_cmd_line  ) 

while ( isemptyf1  ) 


Variable Documentation

else cmd = "mv"

endif[err, msg] = system (sprintf ("%s %s \"%s\"", cmd, p1, p2))

Initial value:

 movefile (f1, f2, force)

  max_cmd_line = 1024

msg = ""

msgid = ""

p2 = tilde_expand (f2)

status = true