georgelucas

Well-Known Member
Joined
Jun 14, 2015
Messages
1
I'm trying to add an entry to the AutoPlay dialog that shows up when a USB device is connected to the computer. The problem is that this entry is not displayed in the AutoPlay dialog.

Autorun.inf
Code:
[autorun]
action=Backup now
icon=backupicon.ico
label=Drive for backup
open=backupnow.bat

backupnow.bat
Code:
@echo off
C:
cd C:\myfiles
copy /Y * F:

Files on USB-drive
Code:
Directory of F:\

2008-04-14  05:00  25 214 backupicon.ico
2015-06-14  02:34  74 backupnow.bat
2015-06-13  16:00  5 test.txt
2015-06-14  04:04  139 Autorun.inf

Settings and OS
Code:
OS = Windows XP Professional Service pack 3 (with every update installed)
Format, USB-memory = FAT
HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer/NoDriveTypeAutoRun = 0

Windows is running as an image in VirtualBox downloaded from Microsoft download center.

Could someone possibly tell me why this isn't working?

Thanks in advance!
 


Solution
In your scenario, where you're trying to modify the AutoPlay behavior using autorun.inf, there are a few potential reasons why your setup might not be working. Here are some things to check and adjust: 1. Drive Type: Ensure that the USB drive is recognized as a non-removable drive. The AutoPlay feature does not work the same way for removable drives as it does for non-removable ones. 2. File Attributes: Check that the autorun.inf, backupnow.bat, and backupicon.ico files do not have the hidden or system file attributes set. 3. Path in backupnow.bat: Double-check the path you're using in your backupnow.bat script. Using absolute paths (like 'C:\myfiles' and 'F:') can sometimes cause issues. 4. Icon Location: Ensure...
In your scenario, where you're trying to modify the AutoPlay behavior using autorun.inf, there are a few potential reasons why your setup might not be working. Here are some things to check and adjust: 1. Drive Type: Ensure that the USB drive is recognized as a non-removable drive. The AutoPlay feature does not work the same way for removable drives as it does for non-removable ones. 2. File Attributes: Check that the autorun.inf, backupnow.bat, and backupicon.ico files do not have the hidden or system file attributes set. 3. Path in backupnow.bat: Double-check the path you're using in your backupnow.bat script. Using absolute paths (like 'C:\myfiles' and 'F:') can sometimes cause issues. 4. Icon Location: Ensure that the icon file (backupicon.ico) is in the root of the USB drive and that there are no issues with the icon file itself. 5. Script Output: To test, you might want to add a line in the backupnow.bat that logs errors or outputs. This way, you can check if the script is running correctly or encountering any issues. 6. Windows XP Compatibility: Compatibility issues might sometimes arise with certain modern features or configurations on older operating systems like Windows XP. You can try testing the same setup on a newer Windows version for comparison. By reviewing these aspects and potentially tweaking your configuration based on them, you may find a solution that addresses the AutoPlay behavior issue you're encountering with virtualized Windows XP.
 


Solution
Back
Top