🧾 Description
This article explains how to use the autostart.ini file to automatically create desktop shortcuts for programs stored in the FlashDisk folder on Datalogic devices running Windows Embedded or CE. This method is useful for ensuring shortcuts are restored after reboot or startup.
🛠️ Resolution Steps
1. Prepare the Program Files
- Save the desired programs in the FlashDisk directory on the device.
2. Create Shortcut Files (.lnk)
- For each program, create a corresponding .lnk shortcut file and save it in FlashDisk.
- Example: SX4.lnk for a program named SX4.
3. Create the Autostart.ini File
- Open a text editor (e.g., Notepad) and create a new file named autostart.ini.
4. Add Shortcut Copy Commands
- Use the following syntax to copy each shortcut to the desktop during startup:
- INI\Windows\cmd.exe /c copy "\FlashDisk\SX4.lnk" "\Windows\Desktop\SX4.lnk"Show more lines
- Repeat this line for each shortcut you want to copy.
5. Save and Place the File
- Save the autostart.ini file.
- Place it in the FlashDisk directory.
Example autostart.ini File
INI\Windows\cmd.exe /c copy "\FlashDisk\SX4.lnk" "\Windows\Desktop\SX4.lnk"\Windows\cmd.exe /c copy "\FlashDisk\MyApp.lnk" "\Windows\Desktop\MyApp.lnk"Show more lines
Important Notes
- The autostart.ini file must reside in the FlashDisk folder to be executed at startup.
- Ensure all .lnk files are valid and correctly point to the associated executable files.
- This method is specific to Datalogic devices running Windows-based operating systems.
