getting autorun to work with windows 7 with inf file??

netrate

New member
Member
VIP
Local time
10:29 PM
Messages
174
I have a inf file that I want to run on a dedicated laptop every time a USB is inserted into the computer. The inf runs a batch file. The batch file works great, but every time I insert the USB, it brings up the menu listing for "play file, windows file explorer" etc. I want it to run the inf file and do nothing else. How can I go about this?

Now, I know that inf files are security problems, but this laptop is dedicate to one thing only and security isn't something I need to worry about. There is no internet connected to this computer either.

My inf file looks like this :

[autorun]
Open=runtv.bat

Thanks in advance
 

My Computer My Computer

At a glance

Win 7 dual boot with win 1016gigGTX
Computer type
PC/Desktop
OS
Win 7 dual boot with win 10
Motherboard
Gigabyte GA-970A-d3
Memory
16gig
Graphics Card(s)
GTX
Monitor(s) Displays
3
Hard Drives
500 gig ssd Samsung

My Computer My Computer

At a glance

Windows 7 Pro SP1 64 bit8 GB
Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Yes I know but how can I reenable it?
 

My Computer My Computer

At a glance

Win 7 dual boot with win 1016gigGTX
Computer type
PC/Desktop
OS
Win 7 dual boot with win 10
Motherboard
Gigabyte GA-970A-d3
Memory
16gig
Graphics Card(s)
GTX
Monitor(s) Displays
3
Hard Drives
500 gig ssd Samsung

My Computer My Computer

At a glance

W7 home premium 32bit/W7HP 64bit/w10 tp insid...E5300 dual core3gbNvidia Geforce 7100 Nforce 630i
Computer type
PC/Desktop
Computer Manufacturer/Model Number
medionl/Aspire 6930G/acer x55a
OS
W7 home premium 32bit/W7HP 64bit/w10 tp insider ring
CPU
E5300 dual core
Motherboard
medion MS7366
Memory
3gb
Graphics Card(s)
Nvidia Geforce 7100 Nforce 630i
Monitor(s) Displays
avixc
Internet Speed
n (isp resticted to 72)
Antivirus
mse/pands
Browser
palemoon
Other Info
Belkin Fd7050 n USB using Railink RT2870 drivers, more upto date
From my research, the autorun has been completely disabled since windows 7. There is no work around from what I could surmise using windows, but having a USB with the U3 sandisk partition for CD is supposed to work!

I actually found that article about the U3 CD/partition for USB this afternoon and my technology hording paid off because I have one with the CD partition intact.
I was using this link : How to create an autorun USB drive by yourself, which works on any Windows.
But I am stuck on some of the stuff he is using such as :

MPParamEdit_F1.exe
getinfo.exe

Since I already have the USB with the partition intact, I wonder if I need to just jump to the autoplay studio?
 

My Computer My Computer

At a glance

Win 7 dual boot with win 1016gigGTX
Computer type
PC/Desktop
OS
Win 7 dual boot with win 10
Motherboard
Gigabyte GA-970A-d3
Memory
16gig
Graphics Card(s)
GTX
Monitor(s) Displays
3
Hard Drives
500 gig ssd Samsung
Well I got it to work, sort of.
I used the EVENT VIEWER to find out what event occurred when the USB was inserted. Unfortunately, there are many events that happen, but I picked the last one. The last one triggers any event in the task scheduler and runs the batch file. I am running a python file from the batch file and although the python and batch file work from file explorer (and work well), there seems to be an error when trying to run the exact same file using the EVENT VIEWER technique. I am not sure why.
 

My Computer My Computer

At a glance

Win 7 dual boot with win 1016gigGTX
Computer type
PC/Desktop
OS
Win 7 dual boot with win 10
Motherboard
Gigabyte GA-970A-d3
Memory
16gig
Graphics Card(s)
GTX
Monitor(s) Displays
3
Hard Drives
500 gig ssd Samsung
Back
Top