Automatically execute a file

Status
Not open for further replies.
Please tell me what kind of file you want to 'execute'. Opening a file is what you do to files, so maybe you're referring to something other than a file?
 
You can use the Autorun feature when you open a volume (e.g. a Windows drive letter). Not so sure about just any old folder..... Just what is it you are trying to accomplish?
 
If it's an executable file it should 'execute' when you click on it! I'm at a lost also as to just what you're wanting to do.
 
If it's an executable file it should 'execute' when you click on it! I'm at a lost also as to just what you're wanting to do.
They don't want to "click" on it. They want it to run automatically upon opening a "folder" (which i don't think is possible). However, automatically running something like a .bat file is possible when opening a "volume". So question is what they are trying to accomplish

Use Scheduled Tasks. Post if you need help getting to it.
Scheduled tasks???? Those run based on time-of-day not based on events (e.g. opening a volume or folder). Or am i missing something?
 
No LookinAround, you're not missing anything. This member has difficulty understand the computer- the usual reply is to 'reinstall/reformat'! Since the member gives his/her age as Age: 9 years old, it would be expected that the knowledge would be limited.

Jim, I think you are going to have to give us an example of a specific file before we can go any further with this.
 
On XP you can set "Autorun" on a removable drive only, i.e. CD/DVD, Flash Drive etc. Has this changed in Vista or Win7

I think that's incorrect. You can create and use an autorun.inf file in the root directory of any mountable volume (note: mountable doesn't mean removable. Your HD can be partitioned to contain different mountable volumes that aren't removable)

My understanding is Autorun applies to volumes.
 
I think that's incorrect. You can create and use an autorun.inf file in the root directory of any mountable volume (note: mountable doesn't mean removable. Your HD can be partitioned to contain different mountable volumes that aren't removable)

My understanding is Autorun applies to volumes.

After doing some reading you are correct. You can have an autorun.inf located in the root folder of hard drives. This does seem to cause problems however and in fact this is how certain viruses install themselves. When using Windows GUI there is no "Autoplay" tab for drive properties for hard drives, only removable drives.

My suggestion to the original poster was going to be to use the subst command to "map" a folder to a drive letter than to use the autorun feature on that drive letter. He would have to open the drive and not the folder for this to work.
 
<snip>
My suggestion to the original poster was going to be to use the subst command to "map" a folder to a drive letter than to use the autorun feature on that drive letter. He would have to open the drive and not the folder for this to work.<snip>

That would be a clever approach :) Now let's see what it is they're trying to accomplish...
 
Status
Not open for further replies.
Back