%This program manages data and analysis files in an automated way.
%
%Zachary Wolf
%11/26/14

%Input directory information from list
%manage_files_input_dir_list;
epu_anal_input_file_list

%Loop
for ii = 1 : 88
    
    %Get the directory from the list
    input_file_dir = INPUT_FILE_DIRs{ii};
    
    %Set the current directory 
    cd(input_file_dir);
    
    %Delete files
    delete('epu_anal.dat');
    delete('epu_anal.ps');
    delete('epu_anal.mat');

    %Rename files
    movefile('epu_anal_probe2.dat', 'epu_anal.dat');
    movefile('epu_anal_probe2.ps', 'epu_anal.ps');
    movefile('epu_anal_probe2.mat', 'epu_anal.mat');
    
end

%Set the current directory to Analysis
cd('c:\analysis');

%Done