| | |
How to AutoRun from a USB disk drive in XP?
![]() |
•
•
Join Date: Dec 2003
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I need to distribute my programs in a USB disk. I want to autorun the setup program. I have the Autorun.inf file in the root of the disk. But it doesn't work in XP. In Win2K works fine.
Here is my Autorun.inf:
[autorun]
open=setup.exe
The setup.exe also is in the root folder.
Can somebody please help me?
Thanks
SenPuppy
I need to distribute my programs in a USB disk. I want to autorun the setup program. I have the Autorun.inf file in the root of the disk. But it doesn't work in XP. In Win2K works fine.
Here is my Autorun.inf:
[autorun]
open=setup.exe
The setup.exe also is in the root folder.
Can somebody please help me?
Thanks
SenPuppy
•
•
Join Date: May 2007
Posts: 22
Reputation:
Solved Threads: 1
Hi guys,
I was looking for a similar solution to your issues and found a helpful link here: http://www.usbhacks.com/2006/10/25/h...-flash-drives/
From what I understand, USB Autorun is limited on Windows XP for security reasons. Autorun assisted, data theft is one security concern for example. The simplicity of reading and writing to basic USB drives and the reasonable amount of data they can hold makes them an ideal target for this (you could easily move a lot of confidential word files onto even just a 128 MB drive). When the user gets home and plugs their USB drive in, a trojan sends the confidential data to the attacker.
I wanted an automatic backup system for USB drives, so I made the three files attached (in USB backup.zip). Feel free to use and modify my code if it helps (if you can't see the files, it's because they're hidden - open a Windows folder and click Tools, Folder Options, View tab, select "Show hidden files and folders", click OK).
1. Autorun.inf (a small configuration file with autorun information)
2. backup.bat (my program/script)
3. backup.ico (a pretty icon which is displayed in my computer)
While this doesn't result in my program being executed as soon as the user plugs the drive in, it adds running my program to the list of options presented when the drive is plugged in. (see attached screen shot, USB Autorun screen.png)
The link above has some other little tricks if you want true Autorun.
Hope that helps.
Regards,
Chris Fry
I was looking for a similar solution to your issues and found a helpful link here: http://www.usbhacks.com/2006/10/25/h...-flash-drives/
From what I understand, USB Autorun is limited on Windows XP for security reasons. Autorun assisted, data theft is one security concern for example. The simplicity of reading and writing to basic USB drives and the reasonable amount of data they can hold makes them an ideal target for this (you could easily move a lot of confidential word files onto even just a 128 MB drive). When the user gets home and plugs their USB drive in, a trojan sends the confidential data to the attacker.
I wanted an automatic backup system for USB drives, so I made the three files attached (in USB backup.zip). Feel free to use and modify my code if it helps (if you can't see the files, it's because they're hidden - open a Windows folder and click Tools, Folder Options, View tab, select "Show hidden files and folders", click OK).
1. Autorun.inf (a small configuration file with autorun information)
2. backup.bat (my program/script)
3. backup.ico (a pretty icon which is displayed in my computer)
While this doesn't result in my program being executed as soon as the user plugs the drive in, it adds running my program to the list of options presented when the drive is plugged in. (see attached screen shot, USB Autorun screen.png)
The link above has some other little tricks if you want true Autorun.
Hope that helps.
Regards,
Chris Fry
Last edited by Marymead-IT; Jul 25th, 2007 at 1:35 am.
•
•
Join Date: May 2007
Posts: 22
Reputation:
Solved Threads: 1
Also, for anyone who stumbled accross this forum looking for a free backup program for their USB drive (or backup program for thumb drive for the search engines), download the zip file and extract it to the root of your USB drive.
It will create a folder in your system drive (normally C: ) called "USB Backup 0707" and copy the contents of your USB drive there when you run it.
(If you can't see the files, it's because they're hidden - open a windows folder and click Tools, Folder Options, View tab, select "Show hidden files and folders", click OK)
It will create a folder in your system drive (normally C: ) called "USB Backup 0707" and copy the contents of your USB drive there when you run it.
(If you can't see the files, it's because they're hidden - open a windows folder and click Tools, Folder Options, View tab, select "Show hidden files and folders", click OK)
Last edited by Marymead-IT; Jul 25th, 2007 at 1:30 am.
•
•
Join Date: Feb 2008
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi,
I need to distribute my programs in a USB disk. I want to autorun the setup program. I have the Autorun.inf file in the root of the disk. But it doesn't work in XP. In Win2K works fine.
Here is my Autorun.inf:
[autorun]
open=setup.exe
The setup.exe also is in the root folder.
Can somebody please help me?
Thanks
SenPuppy
Hi,
i have same problem but i got solution only for xp & higher...
that is.. create one autorun.inf file..
[autorun]
open=filename.exe
icon=filename.ico
lable=heading
action=hai
shellexecute=filename.exe
its run only xp but not run in win98,2000
if u got any solution for this please send to me..
venkateshr006@gmail.com
all the best.. do well...
![]() |
Similar Threads
- problems with 8GB USB flash drive (Cellphones, PDAs and Handheld Devices)
- "Insert Disk" message received when accessing USB flash drive (Viruses, Spyware and other Nasties)
- BOOTING windows xp FROM USB PEN drive...!!! (Windows NT / 2000 / XP)
- Issue with External Disk Drive (Apple Hardware)
- Maxtor One-Touch 250GB USB/Firewire Drive (Storage)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: Windows Delay at boot
- Next Thread: blue screen and then wont boot
| Thread Tools | Search this Thread |
.net 2007 2010 a.exe address apache appstore arm auto automatically black blue book bsod bulletin canonical cellphones codeplex collaboration computer crash cursor deployment deployments desktop desktops dns dotnetnuke drive eartlink error errors explorer fax features folder fontmanagers format framework intel internet interoperability killprocess laptop linux load login mac memory microsoft monitor motionle1600 netbooks novell nvidia open operatingsystems osx palm patch port printer product program proxy remotedesktop remotedesktopconnection repair replacingraiddrive retrieve screen security sharepoint simplifiedchinese sitetositevpn slowperformance technology unreadable update usb verizon videodrivers videogames virus vista visual vpn vulnerability wab webos weecam win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde





