Temp_txtfile.txt
I want to copy this file to another folder on my HD using a Matlab
script/function:
% Specify the directory to save the files to:
dir = uigetdir('C:\');
% The above command will open a dialog box to navigate to the
relevant folder and allow me to specify the save directory.
The following is a list of what I intend to achieve thereafter:
1) Use another dialog box to select the appropriate file to copy:
e.g
[textfile,pathname] = uigetfile('*.text','Select the Text file');
% I'm not sure if this is correct.
2) Copy the selected file.
3) Paste the selected file to the directory specified in 'dir'.
Thanks.
Dave
Hi Dave!
Take a look at the function copyfile:
help copyfile
/PB
help fullfile
help fileparts
help copyfile
michael