Skip to content

सुरक्षित नगरिएका, ओभरराइट वा भ्रष्ट कागजातहरू र स्प्रेडसिटहरू पुन: प्राप्ति गर्दै

आपतकालीन नम्बरहरू देश अनुसार फरक हुन्छन्. यो पृष्ठले 911 प्रयोग गर्दछ, संयुक्त राज्य र क्यानाडाको लागि नम्बर। धेरै अन्य देशहरूले 112, 999, वा अर्को नम्बर प्रयोग गर्छन्। आफ्नो देशको लागि नम्बर खोज्नुहोस्.

"बचत नगर्नुहोस्" मा क्लिक गरेर ४०-पृष्ठको माइक्रोसफ्ट वर्ड अनुबंध वा जटिल एक्सेल वित्तीय मोडेल बन्द गर्दै, तपाइँ हिट हुनु अघि तपाइँको कम्प्युटर क्र्यास हेर्दै। Ctrl + S, accidentally saving an empty template over last year's master file, or receiving the dreaded "Word experienced an error trying to open the file" dialog minutes before a deadline feels catastrophic. Because modern productivity apps hold active edits inside volatile RAM buffers and hidden temporary staging directories (AutoRecover .asd, .wbk, .tmp, र UnsavedFiles), making the wrong move in the first 60 seconds can cause the application to purge those staging files forever.

Even when a .docx, .xlsx, .pptx, वा .odt file is genuinely corrupted on disk, your text and spreadsheet numbers are almost never gone. Modern Office Open XML (.docx, .xlsx, .pptx) र OpenDocument (.odt, .ods) files are actually standard .zip archive containers holding plain-text XML files (word/document.xml वा xl/worksheets/sheet1.xml). Even if the outer ZIP central directory is truncated by a power loss or USB flash drive pull, you can extract 99 percent of your prose and formulas directly out of the raw XML stream in under five minutes.


अब यो गर्नुहोस्

  1. STOP writing new files, installing recovery programs, or rebooting your computer. If an application crashed or you clicked "Don't Save", the temporary staging file (.asd, .tmp, वा -$ lock file) is sitting in your operating system AppData वा /tmp directory right now. On Solid-State Drives (SSDs) with TRIM enabled, saving large files or installing bloatware "document repair" tools onto the same drive will permanently zero out the unallocated flash blocks holding your deleted temp buffers.
  2. If you just overwrote a critical text passage inside an STILL-OPEN document and hit Ctrl + S (Save), DO NOT close the window, press Ctrl + Z (Command + Z on Mac) repeatedly. In Microsoft Word, Excel, LibreOffice, Google Docs, and Apple Pages, clicking "Save" writes the current state to disk but does NOT clear the in-memory Undo stack as long as the document window remains open. Pressing Ctrl + Z 50 or 100 times will step backward right past your accidental save and restore the deleted paragraphs, which you can then copy into a new file.
  3. Before touching a corrupted .docx, .xlsx, .pdf, वा .sqlite file, duplicate it twice (Copy 1 र Copy 2) into a safe folder. Never run Microsoft Word's "Open and Repair", zip -FF, वा sqlite3 .recover directly on your only original copy of a damaged file. Always work on a duplicate so that if a repair utility truncates an unreadable table, your original raw bytes remain untouched for deeper forensic extraction.
  4. Check the hidden UnsavedFiles directory in Microsoft Word, Excel, and PowerPoint immediately. Even when you explicitly click "Don't Save" on a brand-new or modified Office document, modern Microsoft Word, Excel, and PowerPoint silently retain a copy of the AutoRecover .asd snapshot inside %LOCALAPPDATA%\Microsoft\Office\UnsavedFiles for four days before deleting it. Open File > Info > Manage Document > Recover Unsaved Documents (or Recover Unsaved Workbooks in Excel) to grab it immediately.
  5. If you accidentally saved over a file stored in OneDrive, Google Drive, Dropbox, iCloud Drive, or SharePoint, restore it via Web Version History in 30 seconds. Cloud sync engines do not overwrite files destructively; every time Ctrl + S syncs to the cloud, the server appends a timestamped snapshot to the file Version History (retaining the last 25 to 500 versions for 30 days). Right-click the file -> Version History to restore the exact minute before the mistake.
  6. Keep perspective during high-stress academic, legal, or medical documentation emergencies. No lost spreadsheet or thesis is worth a physical health crisis. If you are trying to recover critical medical directives or emergency records during an active life-safety threat, prioritize human safety first and call your local emergency number (911 in the United States and Canada, 112 across the European Union, 999 in the United Kingdom, or see our आपतकालीन नम्बरहरू निर्देशिका)।

Never pay 'Online DOCX/XLSX Repair Websites' or upload confidential legal, medical, or tax files to third-party cloud repair portals

Dozens of predatory websites rank at the top of search engines claiming to "Repair Corrupted Word & Excel Files Online." Most of these sites simply run the free open-source zip -FF वा xmllint command on their server, show you a blurred preview of your own text, and demand 29 to 49 dollars in Bitcoin or credit card payments to download the XML file, while harvesting your confidential tax returns, passwords, or legal contracts on an untrusted foreign server. You can perform the exact same ZIP/XML extraction locally on your own computer in 60 seconds for free using the steps below.


Document & spreadsheet recovery triage decision tree

flowchart TD
    Start["Document Emergency: Unsaved, Overwritten, or Corrupted File"] --> Scenario{"Which Failure Just Happened?"}

    Scenario -->|"1. 'बचत नगर्नुहोस्' क्लिक गर्नुहोस् वा एप बचत गर्नु अघि क्र्यास भयो"| UnsavedPath["चरण 1: फाइल जाँच गर्नुहोस् > जानकारी > कागजात प्रबन्ध गर्नुहोस् > सुरक्षित नगरिएका कागजातहरू पुन: प्राप्ति गर्नुहोस्<br/>चरण 2: AppData\Local & Roaming\Microsoft\Word/Excel बाट सबै .asd, .xlb, र .tmp फाइलहरू प्रतिलिपि गर्नुहोस्<br/>चरण 3: Mac मा, $TmsRcovery फोल्डर र $TMPRecovery जाँच गर्नुहोस्।"]

    Scenario -->|"2. संयोगवश फाइल ओभरराइट भयो र सेभ गर्नुहोस् (Ctrl+S) थिच्नुहोस्"| OverwritePath{"के कागजात सञ्झ्याल अझै खुला छ?"}
    OverwritePath -->|"हो: अझै खुला छ"| UndoNow["Ctrl+Z (Cmd+Z) बारम्बार थिच्नुहोस् -> पुनःप्राप्त पाठलाई नयाँ फाइलमा प्रतिलिपि गर्नुहोस् -> यस रूपमा बचत गर्नुहोस्"]
    OverwritePath -->|"होइन: पहिले नै बन्द"| VersionPath["चरण 1: क्लाउड संस्करण इतिहास जाँच गर्नुहोस् (OneDrive, Google ड्राइभ, Dropbox, iCloud)<br/>चरण 2: Windows मा, NTFS भोल्युम छाया प्रतिलिपिहरू ('अघिल्लो संस्करणहरू' / ShadowExplorer) निरीक्षण गर्नुहोस्<br/>चरण 3: म्याकमा, APFS स्थानीय समय स्न्यापहरू, सबै रिभर्ट्स, म्याकहरू' जाँच गर्नुहोस्।"]

    Scenario -->|"3. फाइल खोल्न अस्वीकार गर्दछ ('फाइल भ्रष्ट / अपठनीय सामग्री')"| CorruptPath{"कस्तो प्रकारको फाइल दूषित छ?"}
    CorruptPath -->|"आधुनिक कार्यालय (.docx, .xlsx, .pptx) वा LibreOffice (.odt, .ods)"| ZipXML["1. डुप्लिकेट फाइल -> Word/Excel मा 'खोल्नुहोस् र मर्मत गर्नुहोस्' प्रयास गर्नुहोस् वा LibreOffice मा खोल्नुहोस्<br/>2। प्रतिलिपिलाई .zip मा पुन: नामाकरण गर्नुहोस् -> '7z x' वा 'zip -FF' चलाउनुहोस् -> शब्द/document.xml वा xl/sharedStrings.xml निकाल्नुहोस्"]
    CorruptPath -->|"लिगेसी बाइनरी अफिस (.doc, .xls) वा PDF (.pdf)"| BinaryFix["'कुनै पनि फाइलबाट पाठ रिकभर गर्नुहोस्' मार्फत स्ट्रिङहरू निकाल्नुहोस् वा 'qpdf --decrypt' / 'mutool clean' को साथ PDF xref तालिका मर्मत गर्नुहोस्।"]
    CorruptPath -->|"SQLite डाटाबेस (.sqlite, .db) वा CSV"| DBFix["चलाउनुहोस् 'sqlite3 corrupt.db \".recover\"| sqlite3 fixed.db' B-ट्री पृष्ठहरू पुन: निर्माण गर्न"]

परिदृश्य 1: सुरक्षित नगरिएका कागजातहरू पुन: प्राप्ति गर्दै ("बचत नगर्नुहोस्" वा एप क्र्यासमा क्लिक गरेपछि)

जब तपाइँ Microsoft Word, Excel, PowerPoint, LibreOffice, वा Adobe एपहरूमा काम गर्नुहुन्छ, कार्यक्रमले आवधिक AutoRecover स्न्यापसटहरू (प्रत्येक 10 मिनेटमा पूर्वनिर्धारित) र अस्थायी स्वैप बफरहरू (-WRDxxxx.tmpलुकेका प्रणाली फोल्डरहरूमा।

विन्डोज, macOS, र Linux मा सुरक्षित नगरिएका र AutoRecover फाइलहरूको लागि सटीक लुकेका फाइल मार्गहरू

फाइल एक्सप्लोरर खोल्नुहोस्, खोजकर्ता (Cmd + Shift + G), वा टर्मिनल सञ्झ्यालमा जानुहोस् र यी सटीक डाइरेक्टरीहरू जाँच गर्नुहोस् ** तुरुन्तै धेरै पटक अनुप्रयोग खोल्न र बन्द गर्नु अघि **:

एप्लिकेसन र ओएस सही डाइरेक्टरी मार्ग सुरक्षित गरिएको छैन .asd, .tmp, र स्वत: रिकभर फाइलहरू हेर्नको लागि फाइल विस्तारहरू
Microsoft Word, Excel र PowerPoint (Windows) 1। %LOCALAPPDATA%\Microsoft\Office\UnsavedFiles (Files where you clicked "Don't Save")
2. %APPDATA%\Microsoft\Word\ (or \Excel\ / \PowerPoint\)
3. %LOCALAPPDATA%\Temp\
.asd (AutoRecover Snapshot), .wbk (Word Backup), .xlb / .xar (Excel AutoRecover), -WRD*.tmp, -WRL*.tmp
Microsoft Word, Excel & PowerPoint (macOS) 1। -/Library/Containers/com.microsoft.Word/Data/Library/Preferences/AutoRecovery (replace Word with Excel वा Powerpoint)
2. Session Temp Folder: Run open $TMPDIR टर्मिनलमा र खोल्नुहोस् TemporaryItems सबफोल्डर
AutoRecovery save of *.docx, .asd, -WRL*.tmp
LibreOffice लेखक / Calc / Impress (Windows, macOS, Linux) विन्डोज: %APPDATA%\LibreOffice\4\user\backup\
** macOS**: -/Library/Application Support/LibreOffice/4/user/backup/
लिनक्स: -/.config/libreoffice/4/user/backup/ र /tmp/lu*
.bak, .odt_0.odt, lu*.tmp
एप्पल पृष्ठहरू, नम्बरहरू र किनोट (macOS) 1। -/Library/Containers/com.apple.iWork.Pages/Data/Library/Autosave Information/
2. -/Library/Application Support/CloudDocs/session/containers/
.pages, .numbers, .key प्याकेज बन्डलहरू
नोटप्याड++ र VS कोड (अज्ञात ट्याबहरूका लागि पनि) नोटप्याड++: %APPDATA%\Notepad++\backup\
VS कोड (जित): %APPDATA%\Code\User\History\ र %APPDATA%\Code\Backups\
VS कोड (म्याक): -/Library/Application Support/Code/User/History/
new 1@2026-..., टाइमस्ट्याम्प गरिएको JSON/पाठ इतिहास स्न्यापसटहरू

एक-कमान्ड PowerShell र macOS/Linux स्क्रिप्ट अहिले सबै कार्यालय अस्थायी फाइलहरू फसल गर्न

दस लुकेका फोल्डरहरू म्यानुअल रूपमा क्लिक गर्नुको सट्टा, यो पढ्न-मात्र उद्धार स्क्रिप्ट चलाउनुहोस् प्रत्येक जीवित प्रतिलिपि गर्न। .asd, .wbk, र कार्यालय .tmp तपाईको डेस्कटपको फोल्डरमा पछिल्लो ४८ घण्टामा परिमार्जन गरिएको फाइल:

  • ** Windows मा (PowerShell मा चलाउनुहोस्)**:
    $RescueDir = "$env:USERPROFILE\Desktop\Document_Rescue"
    New-Item -ItemType Directory -Force -Path $RescueDir | Out-Null
    $SearchPaths = @(
        "$env:LOCALAPPDATA\Microsoft\Office\UnsavedFiles",
        "$env:APPDATA\Microsoft\Word",
        "$env:APPDATA\Microsoft\Excel",
        "$env:APPDATA\Microsoft\PowerPoint",
        "$env:LOCALAPPDATA\Temp"
    )
    Get-ChildItem -Path $SearchPaths -Include "*.asd","*.wbk","*.xar","~WRD*.tmp","~WRL*.tmp","*.docx","*.xlsx" -Recurse -Force -ErrorAction SilentlyContinue |
      Where-Object { $_.LastWriteTime -gt (Get-Date).AddHours(-48) } |
      ForEach-Object {
          Copy-Item $_.FullName -Destination (Join-Path $RescueDir ($_.LastWriteTime.ToString("HHmmss_") + $_.Name)) -Force
      }
    Write-Host "Copied all candidate recovery files to $RescueDir"
    
  • ** macOS / Linux मा (टर्मिनलमा चलाउनुहोस्)**:
    mkdir -p ~/Desktop/Document_Rescue
    find ~/Library/Containers/com.microsoft.* "$TMPDIR" ~/.config/libreoffice /tmp \
      \( -iname "*.asd" -o -iname "*AutoRecovery*" -o -iname "~WR*.tmp" -o -iname "*.bak" \) \
      -mtime -2 -exec cp -p {} ~/Desktop/Document_Rescue/ \; 2>/dev/null
    ls -la ~/Desktop/Document_Rescue/
    
  • ** बरामद कसरी खोल्ने .asd वा -WRLxxxx.tmp फाइल**: डबल-क्लिक नगर्नुहोस् .asd फाइल एक्सप्लोररमा फाइल (विन्डोजले प्रायः दावी गर्छ कि यो खोल्न सक्दैन .asd प्रत्यक्ष)। यसको सट्टा, Microsoft Word सुरु गर्नुहोस् -> फाइल> खोल्नुहोस्> ब्राउज क्लिक गर्नुहोस् -> तल-दायाँ कुनामा रहेको फाइल-प्रकार ड्रपडाउनलाई "सबै फाइलहरू (*.*)" -> चयन गर्नुहोस् .asd वा .tmp आफ्नो भित्र फाइल Document_Rescue फोल्डर।

Scenario 2: Recovering OVERWRITTEN files (When you saved over a good file and closed the app)

If you accidentally opened last month's master spreadsheet, deleted half the tabs, hit Ctrl + S (Save) instead of Save As, and already closed the program, the in-memory Undo buffer is gone. However, modern filesystems and sync clients preserve historical blocks through five mechanisms:

1. Cloud Sync Version History (OneDrive, SharePoint, Google Drive, Dropbox, iCloud)

If the file lived inside your Desktop, Documents, or cloud folder synced by OneDrive, Dropbox, Google Drive, or iCloud: - Microsoft OneDrive / SharePoint: Right-click the file in File Explorer (or log into onedrive.live.com) -> click Version history. Click the three dots (...) next to the timestamp from before your mistake and click Restore. - Google Drive (even for native .docx / .xlsx files synced via Drive for Desktop): Right-click the file in drive.google.com -> File information > Manage versions, or open the document and press Ctrl + Alt + Shift + H to view full revision history. - Dropbox: Right-click the file -> Version history (retains every save for 30 to 180 days; even if you overwrote 100 files at once, Dropbox Rewind rolls the entire folder back to any minute). - एप्पल iCloud ड्राइभ र macOS नेटिभ संस्करण (NSDocument संस्करणहरू): macOS मा, ओभरराइट गरिएको फाइल पृष्ठ, नम्बर, किनोट, टेक्स्ट सम्पादन, वा पूर्वावलोकन मा खोल्नुहोस् र शीर्ष मेनु पट्टीबाट फाइल > रिभर्ट टु > ब्राउज सबै संस्करणहरू... मा क्लिक गर्नुहोस्। macOS ले आन्तरिक SQLite/chunked कागजात संस्करण डाटाबेस राख्छ (/.DocumentRevisions-V100) तपाईको APFS ड्राइभमा तपाईले टाइम मेसिन प्रयोग गर्नुभएन भने पनि।

2. Windows NTFS भोल्युम छाया प्रतिलिपिहरू (Previous Versions र ShadowExplorer)

स्थानीय तहमा पनि C: ड्राइभ जुन कुनै पनि क्लाउडमा सिंक गरिएको छैन, विन्डोजले समय-समयमा प्रणाली पुनर्स्थापना पोइन्टहरू वा अद्यावधिकहरूको बखत भोल्युम छाया प्रतिलिपिहरू (VSS) भनिने तपाईंको ड्राइभको पढ्ने-मात्र पोइन्ट-इन-टाइम ब्लक स्न्यापसटहरू सिर्जना गर्दछ: 1. फाइल एक्सप्लोररमा ओभरराइट गरिएको फाइल (वा यसलाई समात्ने मूल फोल्डर) मा दायाँ क्लिक गर्नुहोस् -> गुणहरू -> अघिल्लो संस्करणहरू ट्याबमा क्लिक गर्नुहोस्। 2. ** यदि Previous Versions ट्याब खाली देखिन्छ, त्यहाँ नरोक्नुहोस्**: Windows 10 र 11 ले बारम्बार फाइल एक्सप्लोरर GUI मा अवस्थित VSS स्न्यापसटहरू लुकाउँछ जबकि छाया भोल्युमहरू अझै डिस्कमा अक्षुण्ण छन्। 3. एउटा प्रशासक कमाण्ड प्रम्प्ट खोल्नुहोस् र छाया प्रतिलिपिहरू अवस्थित छन् भने जाँच गर्नुहोस्:

vssadmin list shadows
4. यदि vssadmin list shadows एक वा बढी सूचीबद्ध गर्दछ HARDDISKVOLUME_SHADOWCopy मात्रा (उदाहरणका लागि, \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3), त्यो स्न्यापसट सिधै तपाईंको फोल्डरमा लिङ्क गर्नुहोस् C: ड्राइभ गर्नुहोस् ताकि तपाइँ यसलाई ब्राउज गर्न सक्नुहुन्छ र तपाइँको पूर्व अधिलेखन कागजात प्रतिलिपि गर्न सक्नुहुन्छ:
mklink /d C:\ShadowRescue \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy3\
खोल्नुहोस् C:\ShadowRescue\Users\YourName\Documents\ फाइल एक्सप्लोररमा र तपाईंको फाइलको अक्षुण्ण पुरानो संस्करण प्रतिलिपि गर्नुहोस्।

3. macOS APFS स्थानीय स्न्यापसटहरू (tmutil listlocalsnapshots)

तपाईंको बाह्य टाइम मेसिन ब्याकअप ड्राइभ दुई हप्ताको लागि कोठरीमा अनप्लग गरिएको अवस्थामा पनि, macOS ले स्वचालित रूपमा प्रति घण्टा **APFS स्थानीय स्न्यापसटहरू ** सिधै तपाईंको आन्तरिक Mac SSD मा सिर्जना गर्दछ:

# List all hidden local APFS snapshots stored on your internal Mac SSD
tmutil listlocalsnapshots /

# Mount a local snapshot read-only to extract the pre-overwritten file
mkdir -p /tmp/apfs_rescue
sudo mount_apfs -s com.apple.TimeMachine.2026-10-31-093000.local /System/Volumes/Data /tmp/apfs_rescue
cp "/tmp/apfs_rescue/Users/$USER/Documents/MyContract.docx" ~/Desktop/MyContract_Recovered.docx


परिदृश्य 3: मर्मत भ्रष्ट .docx, .xlsx, .pptx, र .odt फाइलहरू (जिप + XML सर्जिकल निकासी विधि)

किन आधुनिक कार्यालय कागजातहरू भ्रष्ट हुन्छन्? Microsoft Office 2007 बाट सुरु गर्दै, .docx, .xlsx, र .pptx फाइलहरू (साथै LibreOffice .odt, .ods, र .odp फाइलहरू) एकल मोनोलिथिक बाइनरी फाइलहरू होइनन्। हरेक .docx वा .xlsx फाइल वास्तवमा एउटा मानक PKZIP अभिलेख हो जसमा फोल्डरहरू र UTF-8 XML फाइलहरू छन्।

जब USB फ्ल्याश ड्राइभ बाहिर नछोडिकन अनप्लग हुन्छ, सेभ गर्दा नेटवर्क सेयर घट्छ, वा वर्ड बीच-राइट क्र्यास हुन्छ, फाइलको छेउमा रहेको ZIP केन्द्रीय डाइरेक्टरी हेडर काटिएको हुन्छ, वा एकल XML ट्यागमा word/document.xml बन्द गर्न असफल। माइक्रोसफ्ट वर्ड र एक्सेलमा धेरै कडा XML पार्सरहरू छन्: यदि जिप फुटर वा XML स्किमामा एक बाइट पनि विकृत छ भने, Word ले सम्पूर्ण 50-पृष्ठ कागजात खोल्न अस्वीकार गर्दछ।

चरण 1: पहिले 3 निर्मित गैर-विनाशकारी पार्सर ओभरराइडहरू प्रयास गर्नुहोस्

तपाईको दूषित फाइललाई सधैं नक्कल गर्नुहोस् (Contract_Copy.docx) यी तीन द्रुत समाधानहरू परीक्षण गर्नु अघि:

  1. Microsoft Office बिल्ट-इन "खुला र मर्मत":
  2. Word, Excel, वा PowerPoint लन्च गर्नुहोस् -> फाइल> खोल्नुहोस्> ब्राउज मा क्लिक गर्नुहोस् ("हालैका फाइलहरू" सूचीबाट फाइलमा नगर्नुहोस् क्लिक गर्नुहोस्)।
  3. यसलाई हाइलाइट गर्न तपाईंको दूषित नक्कल फाइलमा एकपटक क्लिक गर्नुहोस्।
  4. सानो ** तल-तीरमा क्लिक गर्नुहोस् (▼) को दायाँ किनारामा [ Open | ▼ ] बटन** संवाद बक्सको तल-दायाँमा, र "खोल्नुहोस् र मर्मत गर्नुहोस्..." चयन गर्नुहोस्।
  5. एक्सेलमा, यदि मरम्मत असफल भयो भने, चरण दोहोर्याउनुहोस् र "डेटा निकाल्नुहोस्" -> "मानहरूमा रूपान्तरण गर्नुहोस्" वा "सूत्रहरू पुनःप्राप्त गर्नुहोस्" छान्नुहोस्।
  6. भ्रष्टलाई खोल्नुहोस् .docx / .xlsx LibreOffice भित्र वा Google कागजात:
  7. LibreOffice लेखक र Calc (नि:शुल्क, खुला स्रोत मा libreoffice.org) माइक्रोसफ्ट अफिस भन्दा धेरै अधिक क्षमाशील, गल्ती-सहिष्णु XML र ZIP पार्सर प्रयोग गर्नुहोस्। लगभग ६० प्रतिशत मामिलाहरूमा जहाँ माइक्रोसफ्ट वर्ड वा एक्सेलले भ्रष्ट फाइल खोल्न पूर्ण रूपमा अस्वीकार गर्दछ, त्यही नै खोल्दा .docx वा .xlsx file inside LibreOffice opens the entire document cleanly and lets you click File > Save As to write out a brand-new, specification-compliant .docx वा .xlsx file.
  8. In Excel: Reference the Broken Workbook Cells from a New Blank Workbook (External Link Extraction):
  9. If a corrupted .xlsx वा .xls workbook crashes Excel every time you try to open it, you can pull the raw cell values out without ever opening the corrupt file:
  10. Open a brand-new blank Excel workbook.
  11. In cell A1, type an external formula referencing Sheet1 of your corrupted file:
    ='C:\Users\YourName\Desktop\[CorruptedFile.xlsx]Sheet1'.A1
    
  12. Press Enter. Excel reads the raw BIFF/XML cell stream off disk without rendering the corrupt charts, macros, or styles. Drag the fill handle across columns A मार्फत Z and down 1,000 rows to pull out every single number and text string in the sheet, then copy all cells and Paste Values (Ctrl + Alt + V -> Values)।

Step 2: The ZIP + XML Extraction Method (Recovers 99% of text/numbers when "Open and Repair" fails)

If both Office "Open and Repair" and LibreOffice fail because the .docx, .xlsx, .pptx, वा .odt ZIP container is truncated, extract the internal XML files directly:

Anatomy of an Office Open XML (.docx / .xlsx / .pptx) archive

Outer File Type Rename Extension To Internal XML File Holding Your Actual Work What Else Lives Inside the Archive
Word Document (.docx) .zip word/document.xml (100% of body text)
word/header1.xml, word/footer1.xml, word/footnotes.xml
word/media/ (Every embedded photo, PNG, and JPEG at 100% original resolution)
Excel Workbook (.xlsx) .zip xl/sharedStrings.xml (All text strings in the workbook)
xl/worksheets/sheet1.xml, sheet2.xml (All numeric values, cell coordinates, and formulas)
xl/media/ (Embedded images)
xl/calcChain.xml (Frequently the file that corrupts, deleting calcChain.xml fixes many broken .xlsx files)
PowerPoint Deck (.pptx) .zip ppt/slides/slide1.xml, slide2.xml, etc.
ppt/notesSlides/notesSlide1.xml (Speaker notes)
ppt/media/ (All slide images, audio, and video clips)
LibreOffice (.odt / .ods) .zip content.xml (All document text, tables, and spreadsheet cells) Pictures/ (All embedded graphics)

Exact terminal / PowerShell commands to rebuild the ZIP archive and extract raw prose

  1. ** बिग्रिएको फाइलको प्रतिलिपि बनाउनुहोस् र यसको विस्तारलाई पुन: नामाकरण गर्नुहोस् .zip** (उदाहरणका लागि, BrokenThesis.docx -> BrokenThesis.zip)।
  2. जिप हेडर भ्रष्टाचारलाई बेवास्ता गर्दै जीवित XML र मिडिया फाइलहरू बलपूर्वक निकाल्नुहोस्:
  3. 7-Zip प्रयोग गर्दै (Windows / Linux / macOS) वा zip -FF (macOS / Linux): मानक विन्डोज एक्सप्लोरर जिप एक्स्ट्र्यासन बन्द हुन्छ यदि ZIP फुटर बिग्रिएको छ, जबकि 7-Zip (7z x) र Info-ZIP (zip -FF) फाइलको सुरुबाट सेक्टर-द्वारा-सेक्टर स्क्यान गर्नुहोस् र काट्ने बिन्दु अघि प्रत्येक अक्षुण्ण फाइल निकाल्नुहोस्:
    # On macOS or Linux: Rebuild the damaged ZIP structure and extract everything
    zip -FF BrokenThesis.zip --out RepairedArchive.zip
    unzip -q RepairedArchive.zip -d Extracted_Contents/
    
    # Or using 7-Zip (extracts word/document.xml even if the end of the file is missing):
    7z x BrokenThesis.zip -oExtracted_Contents/
    
  4. ** एक्सेलको लागि द्रुत-फिक्स .xlsx फाइलहरू (calcChain.xml र styles.xml हटाउने)**:
  5. भ्रष्ट Excel को आधा भन्दा बढी .xlsx फाइलहरू खोल्न असफल मात्र किनभने xl/calcChain.xml वा xl/styles.xml भ्रष्ट छ, जबकि xl/worksheets/sheet1.xml र xl/sharedStrings.xml 100 प्रतिशत अक्षुण्ण छन्।
  6. भित्र Extracted_Contents/xl/, मेट्नुहोस् calcChain.xml, को सामग्री पुन: जिप गर्नुहोस् Extracted_Contents मा फर्कनुहोस् FixedWorkbook.xlsx, र यसलाई एक्सेलमा खोल्नुहोस् (एक्सेल स्वतः पुन: निर्माण गर्दछ calcChain.xml बुटमा)।
  7. ** काटिएकोबाट सफा, मानव-पठनीय अनुच्छेदहरू निकाल्नुहोस् word/document.xml (वा content.xml)**:
  8. भए पनि word/document.xml पावर आउटेज द्वारा आधा बाटो काटिएको थियो, यो एक सादा UTF-8 पाठ फाइल हो जहाँ प्रत्येक अनुच्छेद बेरिएको छ। <w:p> ट्यागहरू र प्रत्येक पाठ रन भित्र छ <w:t>Your text here</w:t>।
  9. यो एक-लाइन पाइथन आदेश चलाउनुहोस् (कुनै पनि स्थापना नगरी Windows, macOS, र Linux मा काम गर्दछ) सबै XML मार्कअप हटाउन र आफ्नो सफा अनुच्छेदहरूमा डम्प गर्नुहोस्। Recovered_Prose.txt:
    python3 -c "
    import re, html, pathlib
    raw = pathlib.Path('Extracted_Contents/word/document.xml').read_text(encoding='utf-8', errors='ignore')
    raw = re.sub(r'</w:p>', '\n\n', raw)
    text = html.unescape(re.sub(r'<[^>]+>', '', raw))
    pathlib.Path('Recovered_Prose.txt').write_text(text, encoding='utf-8')
    print('Saved clean text to Recovered_Prose.txt')
    "
    
  10. Windows PowerShell मा (यदि पाइथन स्थापित छैन):
    $raw = Get-Content "Extracted_Contents\word\document.xml" -Raw -Encoding UTF8
    $text = ($raw -replace '</w:p>', "`r`n`r`n") -replace '<[^>]+>', ''
    [System.Net.WebUtility]::HtmlDecode($text) | Set-Content "Recovered_Prose.txt" -Encoding UTF8
    

परिदृश्य 4: भ्रष्ट पीडीएफहरू पुन: प्राप्ति गर्दै, विरासत .doc/.xls फाइलहरू, र SQLite डाटाबेसहरू

1. बिग्रिएको पीडीएफ फाइलहरू मर्मत गर्दै (Damaged xref table / Failed to load PDF document)

PDF फाइलले आफ्नो पृष्ठ वस्तुहरूलाई फाइलको माथिबाट तल भण्डारण गर्छ, र क्रस-रेफरेन्स टेबल (xref) र %%EOF फाइलको धेरै तलको ट्रेलर ** PDF रिडरलाई प्रत्येक पृष्ठको सही बाइट अफसेट बताउँदै। यदि इमेल एट्याचमेन्ट डाउनलोड वा स्क्यानर ट्रान्सफर ९८ प्रतिशतमा रोकिन्छ भने, xref फुटर हराइरहेको छ र Adobe Acrobat ले फाइल खोल्न अस्वीकार गर्छ, यद्यपि 98 प्रतिशत पृष्ठहरू फाइल भित्रै बसिरहेका छन्। - ** PDF पुन: निर्माण गर्नुहोस् xref तालिका स्वचालित रूपमा प्रयोग गर्दै qpdf, mutool (MuPDF), वा भूतस्क्रिप्ट (gs):

# Method 1: qpdf (scans raw PDF objects and generates a brand-new xref table)
qpdf --ier-warnings BrokenFile.pdf RepairedFile.pdf

# Method 2: MuPDF mutool clean (salvages damaged PDF streams and fonts)
mutool clean -gggg BrokenFile.pdf RepairedFile.pdf

# Method 3: Ghostscript (re-renders surviving pages into a fresh PDF)
gs -o RepairedFile.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress BrokenFile.pdf

2. लिगेसी बाइनरी .doc र .xls फाइलहरू (कार्यालय 97 देखि 2003 OLE2 कम्पाउन्ड कागजातहरू)

पुरानो .doc र .xls फाइलहरू ZIP अभिलेखहरू होइनन्; तिनीहरू माइक्रोसफ्टको बाइनरी OLE2 कम्पाउन्ड फाइल बाइनरी ढाँचा प्रयोग गर्छन्। भ्रष्टबाट पाठ निकाल्न .doc फाइल: - माइक्रोसफ्ट वर्डमा, फाइल> खोल्नुहोस्> ब्राउज मा जानुहोस्, फाइलनाम बक्सको छेउमा रहेको फाइल-टाइप ड्रपडाउनलाई सबै शब्द कागजातहरू बाट ** मा परिवर्तन गर्नुहोस्।Recover Text from Any File (*.*)**, र खोल्नुहोस् .doc file. - वा macOS/Linux मा, चलाउनुहोस् antiword Broken.doc > rescued.txt वा strings -n 6 Broken.doc > rescued.txt।

3. बिग्रिएको SQLite डाटाबेसहरू मर्मत गर्दै (.sqlite, .db, ब्राउजर इतिहास, लेखा एप्स, Apple Notes, Quicken, Zotero)

सयौं डेस्कटप र मोबाइल अनुप्रयोगहरूले तपाईंको डाटा SQLite 3 डाटाबेस फाइल (.sqlite, .db, .sqlite3)। जब कम्प्युटरले लेनदेनको बीचमा पावर गुमाउँछ र तपाईंले ** प्राप्त गर्नुहुन्छRuntime error: database disk image is malformed (11)**: 1. पहिलो: राख्नुहोस् -wal (लेख्नुहोस्-अगाडि लग) र -shm ठ्याक्कै उही फोल्डरमा फाइलहरू .sqlite तपाईंको जगेडा प्रतिलिपि बनाउँदा फाइल। ** अक्सर, तपाईंको सबैभन्दा भर्खरको सुरक्षित नगरिएको काम भित्र बसिरहेको हुन्छ database.sqlite-wal चेकपोइन्ट हुन पर्खँदै। 2. ** निर्मित SQLite चलाउनुहोस् .recover इन्जिन (SQLite 3.29+ मा प्रस्तुत गरिएको छ, जसले मास्टर स्कीमा तालिका क्षतिग्रस्त हुँदा र सफा डाटाबेस पुनर्निर्माण गर्दा पनि कच्चा 4KB B-ट्री डिस्क पृष्ठहरू स्क्यान गर्दछ):

sqlite3 corrupted.db ".recover" | sqlite3 repaired.db
(यदि पुरानो संस्करण प्रयोग गर्दै हुनुहुन्छ sqlite3, दौड sqlite3 corrupted.db ".dump" | sqlite3 repaired.db)

4. सुरक्षित नगरिएको गुगल कागजातहरू, गुगल पानाहरू, र वेब ब्राउजर फारम पाठ पुन: प्राप्ति गर्दै (IndexedDB र RAM क्यास)

यदि तपाईंले Google कागजात, नोशन, कन्फ्लुएन्स, वा वेब ब्राउजरको पाठ बाकसमा अफलाइन हुँदा (वा क्लाउडमा सिङ्क हुनुअघि एउटा ट्याब फ्रिज हुँदा) भित्र लामो रिपोर्ट टाइप गरिरहनुभएको थियो भने के हुन्छ? - गुगल कागजात / पानाहरू अफलाइन स्थानीय भण्डारण (IndexedDB): जब तपाइँ क्रोम वा एज भित्र गुगल कागजात वा गुगल पानाहरूमा टाइप गर्नुहुन्छ, तपाइँको ब्राउजरले तपाइँको स्थानीय क्रोम प्रोफाइल डाइरेक्टरी भित्र अफलाइन उत्परिवर्तन पेन्डिङ क्यास गर्दछ (%LOCALAPPDATA%\Google\Chrome\User Data\Default\IndexedDB\https_docs.google.com_0.indexeddb.leveldb)। ब्राउजरको ब्राउजिङ डेटा खाली नगर्नुहोस् वा क्रोमबाट साइन आउट गर्नुहोस्। Wi-Fi मा पुन: जडान गर्नुहोस् र जमेको ट्याबलाई २ मिनेटको लागि खुला छोड्नुहोस् ताकि पृष्ठभूमि सेवा कार्यकर्ताले LevelDB लामलाई Google सर्भरहरूमा फ्लस गर्न सकून्, वा स्क्रिनबाट सिधै पाठ प्रतिलिपि गर्नुहोस् Ctrl + A -> Ctrl + C (वा प्रयोग गरेर DOM तत्व निरीक्षण गर्नुहोस् F12 विकासकर्ता उपकरणहरू -> ** तत्वहरू** ट्याब -> दायाँ क्लिक गर्नुहोस् <div class="kix-page"> नोड -> प्रतिलिपि> तत्व प्रतिलिपि गर्नुहोस्)। - बन्द वा ताजा ब्राउजर ट्याबमा हराएको पाठ पुन: प्राप्ति गर्नुहोस्: यदि तपाईंले गल्तिले वेब फारम (जस्तै अनुदान आवेदन, समर्थन टिकट, वा मेडिकल इनटेक फारम) एक घण्टाको लागि टाइप गरेपछि बन्द वा ताजा गर्नुभयो भने, थिच्नुहोस् Ctrl + Shift + T(Command + Shift + T म्याकमा) बन्द गरिएको ट्याब तुरुन्तै पुन: खोल्न, त्यसपछि ** थिच्नुहोस्Ctrl + Z** पाठ बाकस भित्र, वा ब्राउजर प्रक्रिया बन्द गर्नु अघि ब्राउजर मेमोरी डम्प निरीक्षण गर्नुहोस्।


रोकथाम: बुलेटप्रुफ कागजात स्वत: बचत कन्फिगर गर्नुहोस् ताकि तपाईंले फेरि कहिल्यै काम नगुमाउनुहुन्छ

आज तपाईंको उत्पादकता एपहरूमा यी चार सेटिङहरू परिवर्तन गर्न तीन मिनेट खर्च गर्नुहोस्:

  • Microsoft Office AutoRecover अन्तराललाई १० मिनेटबाट २ मिनेटमा छाड्नुहोस्: Word, Excel, र PowerPoint मा, File> Options> Save खोल्नुहोस्, परिवर्तन गर्नुहोस् "Save AutoRecover जानकारी हरेक [ 2 ] मिनेटमा", र "अन्तिम AutoRecovered संस्करण राख्नुहोस् यदि मैले बचत नगरिकन बन्द गरें भने" चिन्ह लगाइएको छ।
  • माईक्रोसफ्ट वर्डमा "सधैं ब्याकअप प्रतिलिपि बनाउनुहोस्" सक्षम गर्नुहोस्: फाइल> विकल्पहरू> उन्नत> बचत मा जानुहोस् र "जहिले पनि जगेडा प्रतिलिपि सिर्जना गर्नुहोस्" जाँच गर्नुहोस्। प्रत्येक चोटि तपाईले प्रहार गर्नुहुन्छ Ctrl + S मा Report.docx, Word स्वचालित रूपमा अघिल्लो संस्करण बचत गर्दछ Backup of Report.wbk एउटै फोल्डरमा।
  • LibreOffice स्वचालित ब्याकअप प्रतिलिपिहरू खोल्नुहोस्: उपकरणहरू> विकल्पहरू> लोड/बचत> सामान्य खोल्नुहोस् र "सधैं जगेडा प्रतिलिपि सिर्जना गर्नुहोस्" र "प्रत्येक ५ मिनेटमा स्वत: पुनःप्राप्ति जानकारी बचत गर्नुहोस्" जाँच गर्नुहोस्।
  • सस्तो हटाउन सकिने USB फ्लैश ड्राइभमा सिधै महत्वपूर्ण कागजातहरू कहिल्यै सम्पादन नगर्नुहोस्: फाइललाई सधैँ आफ्नो आन्तरिक SSD मा प्रतिलिपि गर्नुहोस् (Documents फोल्डर a द्वारा समर्थित 3-2-1 ब्याकअप रणनीति), आफ्नो काम स्थानीय रूपमा गर्नुहोस्, र अनुप्रयोग बन्द गरेर "Safely Remove Hardware / Eject" क्लिक गरेपछि मात्र समाप्त भएको फाइललाई USB थम्ब ड्राइभमा प्रतिलिपि गर्नुहोस्।

बारम्बार सोधिने प्रश्नहरू

I worked on a Word document for five hours that I opened directly from an Outlook or Gmail attachment, clicked "Save", closed it, and now my changes are nowhere to be found. Where did my file go?

When you double-click an attachment inside desktop Microsoft Outlook or a web browser without clicking "Save As" to your Documents folder first, your computer saves the attachment into a hidden, randomized temporary cache folder (`%LOCALAPPDATA%\Microsoft\Windows\INetCache\Content.Outlook\` on Windows, or `~/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/` on macOS). When you hit `Ctrl + S`, Word saves your five hours of edits into that hidden `Content.Outlook` sub-folder. Open Word immediately, check **File > Open > Recent** (or run the PowerShell/Terminal search script in Scenario 1 above to scan `INetCache` and `Temp` for all `.docx` files modified in the last 24 hours) and save a copy to your Desktop.

Why did my Word document turn into pages of squares, gibberish symbols, or `########` signs when I opened it from a USB flash drive?

Two distinct errors cause this symptom: (1) If the file shows solid pages of `########` or `NUL` (zero-byte `0x00`) characters in a hex editor (`HxD`), the operating system pre-allocated the file size on the FAT32/exFAT USB drive, **but the USB stick was unplugged before the write cache flushed the actual data blocks to flash memory**. In that case, inspect the computer where the file was written for surviving `.asd` / `.tmp` files, or run `chkdsk E: /f` on a copy of the USB drive to check `FOUND.000\FILE0000.CHK` orphan clusters. (2) If the file shows random ASCII symbols starting with the letters `PK` at the very top of page 1, your file is completely fine, you simply opened a modern `.docx` ZIP file using Word's "Recover Text from Any File" filter instead of the normal XML parser.

If I rename a corrupted `.docx` or `.xlsx` file to `.zip`, can I rescue the high-resolution photos and charts embedded inside the document?

Yes, and this is one of the fastest benefits of the Office Open XML format. Inside every `.docx`, `.xlsx`, and `.pptx` archive is a subfolder named `word/media/`, `xl/media/`, or `ppt/media/` (or `Pictures/` inside a LibreOffice `.odt` file). Unlike older binary `.doc` files that compressed images into proprietary streams, modern Office files store every inserted photograph, logo, and diagram as an individual, unencrypted `.png`, `.jpeg`, `.svg`, or `.emf` file inside that `media/` subfolder. Extracting the archive with 7-Zip recovers all embedded images at their full native resolution in seconds.

Can I use undelete software like Recuva or PhotoRec to recover an unsaved Word document that was never saved to disk even once?

Yes, provided you stop using the computer immediately. Even if you never pressed `Ctrl + S` on "Document1", Microsoft Word and LibreOffice still write temporary swap and AutoRecover files (`.asd` and `~WRDxxxx.tmp`) to your storage drive every few minutes once the document exceeds the small RAM buffer. However, if you live on a modern SSD with `TRIM` enabled and close the app properly, those deleted temp blocks may be trimmed quickly, so always copy the live `%LOCALAPPDATA%\Microsoft\Office\UnsavedFiles` directory **before** running a full-disk carver. For deleted files that were previously saved, follow our [accidental file deletion and formatted drive recovery](accidental-file-deletion-formatted-drive-and-photo-recovery.md) guide.


सम्बन्धित गाइडहरू


श्रोतहरुले जाँच गरे

  • Ecma अन्तर्राष्ट्रिय र ISO/IEC (अन्तर्राष्ट्रिय): ECMA-376 / ISO/IEC 29500 मानक: Office Open XML फाइल ढाँचाहरू (ओपन प्याकेजिङ कन्भेन्सन ZIP कन्टेनर र WordprocessingML / SpreadsheetML विशिष्टताहरू)।
  • OASIS (संरचित सूचना मानकहरूको उन्नतिको लागि संगठन): Open Document Format (ODF) v1.3 कार्यालय अनुप्रयोगहरूको लागि विशिष्टता (.odt, .ods, .odp XML प्याकेज आर्किटेक्चर)।
  • माइक्रोसफ्ट सिक्नुहोस् आधिकारिक दस्तावेज: *कसरी शब्दले स्वत: पुन:प्राप्ति सिर्जना गर्दछ र पुन:प्राप्त गर्दछ (.asd) र अस्थायी (-WRD*.tmp) फाइलहरू, र Word र Excel मा क्षतिग्रस्त कागजातहरू समस्या निवारण *।
  • SQLite कन्सोर्टियम आधिकारिक दस्तावेज: डाटाबेस भ्रष्टाचार, लेखन-अगाडि लगिङ (-wal), र प्रयोग गर्दै .recover क्षतिग्रस्त बी-ट्री फाइलहरूमा CLI आदेश।
  • Adobe / ISO 32000-2 विशिष्टता: पोर्टेबल कागजात ढाँचा (PDF 2.0) क्रस-संदर्भ (xref) तालिका संरचना र स्ट्रिम रिकभरी।