Skip to content

Dialog Replace File

Digitoxin edited this page Dec 22, 2025 · 2 revisions

Replace File

Replace File Dialog

The Replace File dialog allows you to replace the contents of an existing file in the disk image with data from an external file.

The replacement preserves the file’s directory entry while updating its data, timestamps, and size as needed.

Changes are staged and are not applied until Replace is clicked.


How to Open

  • Menu: Edit → Replace File
  • Toolbar: Replace File
  • Context Menu: Replace File (File Panel)

This dialog is only available for valid files and is disabled for:

  • Directories
  • Volume labels
  • Zero-length files

Overview

The dialog compares the original file in the image with the new file selected from the host system.

Both sides are presented side-by-side so you can clearly see what will change before applying the replacement.


Original File

The Original File section displays information about the file currently stored in the disk image.

This includes:

  • File name
  • Last written date
  • File size

These values represent the current state of the file before replacement.


New File

The New File section displays information about the external file that will replace the original.

This includes:

  • File name
  • Last written date
  • File size

Each item includes a checkbox that allows you to control which attributes will be copied to the replaced file.


Replacement Summary

A summary section below the file comparison clearly states the resulting changes.

This may include:

  • The new file name
  • The updated last written date
  • The resulting file size

This provides a final confirmation of the operation before it is applied.


Buttons

Replace

  • Replaces the contents of the selected file with the new file
  • Applies selected metadata changes
  • Marks the image as modified

Cancel

  • Closes the dialog without making any changes

Notes

  • The file’s directory entry is preserved
  • Cluster allocation may change if the new file size differs
  • Replacement operations are fully undoable
  • The dialog operates on the active image

Clone this wiki locally