BenPSnape

updated

5 years ago

B

BenPSnape

1 Rookie

•

2 Posts

0

1143

October 6th, 2021 01:00

Copy a file after imaging

I would like to copy a file from the build USB after the restore is complete.

I think I should use the after_restore.cmd file but cannot find hte correct commnad to acheive it.

 

Does anyone know what the commands are that can be used?

How would I specify the file location on the USB and how would I specify the target drive?

  • DELL-Tyler M

    Moderator

    •

    350 Posts

    •

    3 Points

    915

    1

    Posted October 6th, 2021 13:00

    @BenPSnape 

    The DIA restore environment configures the drive partition letters as follows:

    • Windows Partition = O
    • DIA USB FAT32 (WinPE) = U
    • DIA USB NTFS (Data) = V

    If you create an after_restore.cmd and place it in the "Dell_Tools" folder on the FAT32 partition of the DIA USB, it will be processed after the restore completes.

    To copy a file from the DIA USB to a folder named temp on the root of the Windows partition after the restore, you could have "test.txt" on the V: partition and after_restore.cmd with the following:

    copy v:\test.txt o:\temp

    Hope this helps!

    Tyler

    (edited)

  • BenPSnape

    1 Rookie

    •

    2 Posts

    891

    0

    Posted October 11th, 2021 05:00

    Thanks for the info @DELL-Tyler M 

    The settings above perfectly