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)) |
f1 | ( | 1 | ) |
if | ( | ) |
if | ( | isdir && | lengthp1, | |
max_cmd_line | ||||
) |
if | ( | ispc()&&!isunix()&&isempty(file_in_path(EXEC_PATH,"mv.exe")) | ) |
while | ( | ! | isemptyf1)&&(length(p1)+length(f1{1})+l2< max_cmd_line | ) |
while | ( | ! | isemptyf1 | ) |
cmd_force_flag = "/Y" |
msg = "" |
msgid = "" |
p2 = tilde_expand (f2) |
status = true |