matlab - How to recover files that were moved to a single file? -
i tried move multiple files folder, there mistake in matlab code didn't create folder. files moved single file cannot opened or edited. how recover these files?
example of mistake:
a=strcat('c:\users\foldername'); % name , directory of folder fname=a; % mkdir(fname); % command wasn't executed... movefile('file1',fname); movefile('file2',fname);
so file1 , file2 merged in file 'fname', instead of in folder named 'fname'. how file1 , file2 back?
thanks in advance!
unfortunately, odds may stacked against getting of files, except last one. reason why because movefile
doesn't append existing destination file, overwrites it. following give last file (by renaming fname
):
movefile(fname, 'file2');
if you're lucky, operating system have options restore previous versions of files/folders. best bet may check , see if folder containing original files has previous versions can open/restore previous versions of 'file1'
, 'file2'
. example, on windows machine can right click on default matlab folder, select "properties", select "previous versions" tab, , see this:
you can see there few versions open , copy files if i've inadvertently deleted or overwritten recently. luck!
Comments
Post a Comment