    cd(XSQY_ProgramDir);
    [x,y] = dos(XSQY_ProgramPath);  %does not show fortran output in matlab window
    %dos(XSQY_ProgramPath);      % displays fortran output in matlab window
    cd(CurrentFolderPath);