• Notice regarding image hosts and attachments. See here.

autorun.inf help needed

Soldato
Joined
19 Oct 2002
Posts
7,042
Location
Bath
Hi guys am trying to make my mobile phone's memory stick autostart a program when its detected using a Autorun.inf script.

Currently it looks like this
Code:
[AutoRun]
Icon=pod.ico ,0
Open=setup.cmd

The setup.CMD looks like this
Code:
@echo off
"c:\program files\MyPhoneExplorer\myphoneexplorer.exe"
exit

But it will not work! The Icon will show but it will not start the batchfile to run the program.

Any ideas?
 
Why do you need a script to run one executable? why can't you call the executable straight from the autostart file?

I tried just running the exe called direct from the autorun.inf but it did not function as it is on my hard drive, i thought that originaly this was the problem so tried the setup.cmd script.

What happens if you just double click setup.cmd?

program loads with no problem

shouldnt it be setup.bat ?

better off being a cmd rather than bat they are essentialy the same thing the bat being the older format DOS batch file and the CMD being a Command script file.
 
Last edited:
I think i have worked out the problem!

I had installed VMware workstation and that disables autorun to stop it interfearing with the host and guest operating systems, i have since uninstalled VMware but it has not re-enabled autorun.

Have tried using tweakUI to turn it back on but that does not work. Any ideas?
 
Fixed it!! i was right and VMware was the problem
and here is the fix

Open up Regedit and goto

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer

and delete

NoDriveTypeAutoRun

Restart explorer (log off and on) and jobs done :)
 
Back
Top Bottom