autorunning .bat file not doing what its ment to!
I have created an autorun.inf on my flash drive (I am not so interested in it autorunning when I plug it in more the feature of changing what happens when you double click on it and being able to add extra right click menu enteries.)
The autorun.inf changes the default action of the drive to running a .bat file.
The .bat file contains a line like START EXPLORER.EXE %CD%
Now that works fine when the .bat file is boubleclicked on but if I double click on the flashdrice on the My Computer screen explorer starts in the system32 directory.
I guess windows is loading the .bat file at the My Computer level and running it there so %CD% gets set to the system32 directory instead of what I expected it would 'decend' onto the flash drive and run the .bat file from there.
Is there any way around this or a way of adding the current drive letter to the autorun.inf file so I dont need the .bat file at all (assuming doing this does not just have the same problem).