I wrote a backup script using Python and I used cx_Freeze to convert it into backup.exe
. I put this executable on my USB flash drive. If I run C:\> E:\backup\backup.exe
, it works, my files are copied to the USB flash drive.
Then I put this autorun.inf
:
[autorun]
open=backup\backup.exe
label=BackupUSB
When I plug the USB flash drive, the label is correctly set to BackupUSB
but the files are not copied.
Why?
EDIT: I added a line action=Run backup
in the autorun.inf
but the option is not displayed in the menu...