모든 글All articles

[컴퓨터 이야기] 작업 중이던 파일이 날아갔을 때[Computer Stories] When Your Work File Disappears

한번쯤은 경험이 있을 것이다.

워드나 엑셀, 파워포인트 작업을 하다가 프로그램이 다운되거나 컴퓨터가 갑자기 재부팅되면서 작업 중이던 파일이 사라져버리는 상황. 저장을 안 했거나, 저장하려는 순간에 꺼졌거나.

아래 방법이 매번 통하지는 않지만, 개인적으로도 몇 번 성공했고 동료들의 며칠치 작업 파일을 살려준 적도 있다.

임시 파일로 작업 내용 복구하기

원리: 임시 파일이 살아 있다

대부분의 업무용 프로그램은 작업 중에 내용을 주기적으로 임시 파일에 저장한다. 프로그램이 정상 종료되면 이 임시 파일은 지워지지만, 비정상 종료(다운, 강제 재부팅)가 일어나면 그대로 남는 경우가 있다.

즉, 파일이 아예 없어진 게 아니라 확장자만 다른 형태로 어딘가에 남아 있을 가능성이 있다.

찾는 방법

문제가 됐던 프로그램의 설치 폴더 또는 임시 파일 폴더를 열어본다. 확장자가 .tmp이거나 이름이 알 수 없는 형태의 파일 중에서, 최종 수정 일시가 작업하던 시각과 비슷한 파일을 찾는다.

파일이 많아 찾기 어려우면 윈도우 파일 탐색기나 이전 글에서 소개한 Everything으로 수정 일시 기준으로 정렬해서 추적해본다.

찾은 파일의 확장자를 원래 프로그램이 쓰는 확장자로 바꾸고 열어보면 내용이 살아 있는 경우가 있다.

Office 임시 파일 위치

실제로 Office 계열은 이 방식으로 복구되는 경우가 꽤 많다.

  • Word: %AppData%\Microsoft\Word\ 안에 ~WRL####.tmp 형태로 저장됨
  • Excel: %AppData%\Local\Microsoft\Office\UnsavedFiles\ (Excel 2010 이상, 자동복구 미저장 파일)
  • 자동복구본 공통: Word는 확장자 .asd, Excel은 .xar 형태로 위 경로들에 남음

%AppData%는 탐색기 주소창에 그대로 입력하면 해당 폴더로 바로 이동한다.

참고로 ~$파일명.docx처럼 물결표로 시작하는 숨김 파일이 보일 수 있는데, 이건 파일 잠금 표시용이라 내용이 없는 경우가 많다. 진짜 복구 후보는 .tmp나 이름이 무작위인 파일들이다.

주의사항

  • 숨김 항목 보기를 켜야 한다 — 위 경로들과 파일들은 기본적으로 숨김 처리되어 있다. 탐색기 → 보기에서 숨김 항목을 체크해야 보인다.
  • 원본을 복사해두고 사본으로 테스트한다 — 확장자를 바꾸기 전에 파일을 복사해두는 것이 안전하다. 확장자가 한 번에 맞지 않을 수 있어서 여러 개를 시도해봐야 할 때도 있다.

모든 상황에서 통하는 방법은 아니지만, 포기하기 전에 한 번쯤 시도해볼 만하다.

Most people have been there at least once.

You're deep into a Word document, Excel spreadsheet, or PowerPoint deck — then the program crashes, the power cuts out, or the computer restarts itself. The file you hadn't saved is gone.

The method below doesn't work every time, but I've personally recovered files this way more than once, and I've rescued a few days' worth of a colleague's work with it too.

Recovering a lost file using temporary files

How it works: the temporary file is still there

Most business applications save your work periodically to a temporary file in the background. When the program closes normally, it cleans up these temp files. But when it crashes or gets killed unexpectedly, those files are often left behind.

In other words, your work may not be gone — it could be sitting somewhere under a different file extension.

How to find it

Look in the installation folder of the application that crashed, or in its temporary file folder. Among files with a .tmp extension or unfamiliar random names, look for one whose last modified time matches when you were working.

If there are too many files to sift through, use File Explorer or Everything (introduced in an earlier post) to sort by modification date and narrow it down.

Once you find a candidate, rename it to the extension the original program uses and try opening it. If the contents are there, you've recovered your file.

Office temporary file locations

Office applications in particular are good candidates for this approach.

  • Word: %AppData%\Microsoft\Word\ — look for files named ~WRL####.tmp
  • Excel: %AppData%\Local\Microsoft\Office\UnsavedFiles\ (Excel 2010 and later, unsaved auto-recovery files)
  • Auto-recovery files: Word saves these with a .asd extension; Excel uses .xar — check the paths above

You can type %AppData% directly into the File Explorer address bar and it will take you straight to that folder.

You may also spot files starting with a tilde — like ~$filename.docx. These are lock files that Office creates while a document is open; they usually contain no recoverable content. The real recovery candidates are the .tmp files and the randomly named ones.

A few things to keep in mind

  • Show hidden items first — The folders and files mentioned above are hidden by default. In File Explorer, go to View and check Hidden items to make them visible.
  • Copy before you rename — Make a copy of the temp file before changing its extension. The right extension isn't always obvious on the first try, and you may need to test a few options.

It won't work in every situation, but it's worth trying before you give up entirely.