Computer Hope

Software => Computer programming => Topic started by: Tan_Za on May 03, 2009, 01:35:28 AM

Title: Autorun program folders
Post by: Tan_Za on May 03, 2009, 01:35:28 AM
Hi,

I need help with a small issue. The issue is that I want to have my program run when I click on the folder that it is in. I have been looking into '.inf' and '.ini' configuration files and so far I haven't found much other than changing the folder icon, but that's not new information. I am running windows xp and this has to be written in either an '.inf' or a '.inf' type file.

Thank you for any help,
Tan_Za
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 03, 2009, 01:38:29 AM
Why, may I ask?
Title: Re: Autorun program folders
Post by: Tan_Za on May 03, 2009, 01:47:11 AM
At my school the government has just put in the new systems and they are not secure. So in other words I have full control over every bodies accounts, so I can delete all of their work, and they can delete all of mine. I'm not the type of person who would go deleting other peoples work but I know a few people who will. So what I have done is made a security program that what I want this '.inf'/'.ini' file is to load it when they access my directory. My program will ask for a password and if they get it wrong then they get booted out of the directory. Sounds fair to me.

Thanks for replying anyways,
Tan_Za
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 03, 2009, 01:53:25 AM
....And to access your stuff, all they would have to do is Right Click --> Explore.

Tell your school about the problem.
Title: Re: Autorun program folders
Post by: Tan_Za on May 03, 2009, 02:00:26 AM
I did and the school said that they had no power over the issue, it is all the government and if the government say they want it they want it.

Even if they go right click - explore the '.inf'/'.ini' file would still run. It is a config file so it runs when it detects a user entering the directory. I know that because I have done it before just not with running programs, only displaying messages and other sorts of display.

I just need to know how to do it and if you can't help then there is no point you replying any more,
Tan_Za
Title: Re: Autorun program folders
Post by: kpac on May 03, 2009, 02:45:41 AM
inf or ini files usually open in Notepad. Right click it, and choose Open With.
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 03, 2009, 02:53:10 AM
So exactly what do you want to do? Write a configuration or autorun to start a program?

Are you sure the school is aware of the problem? If so, they would definitely be able to do something about it.
Having complete access to everyone's files is something that should be dealt with immediately. Think about the data privacy, copyright and security issues.
Would you want your essay copied by someone else for them to hand in as their own?

This thing you are working on may help you, but not everyone else. I don't think your school understands the problem, and I'm also curious how these files are stored on the network.
Title: Re: Autorun program folders
Post by: Tan_Za on May 03, 2009, 05:12:22 AM
Does any body have an answer, I thank you all for your input though.

The section that our account data is located in can't be easily access but you can if you do some simple steps. The School does care but they can't do anything with out government approval  because it is the governments system. So we have to wait till next semester before anything will be done.

I just need to know how to do this for the time being.

Thank you for your help so far though,
Tan_Za
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 03, 2009, 05:31:09 AM
The command for the autorun should simply be open=file.exe or open=path\to\file.exe

Not sure about the configuration file though.
Title: Re: Autorun program folders
Post by: Tan_Za on May 04, 2009, 03:09:06 AM
Well maybe this comment will make it easier to answer the question. How can I get my program to run once I have clicked on the folder that the program is in. That is basically what I need to know. I don't care how it is done, as long as it is not done with batch or anything related to that.

Thanks for your help so far. Also autorun.inf doesn't do anything in this case.

Tan_Za
Title: Re: Autorun program folders
Post by: alecsillidan on May 29, 2009, 01:52:21 PM
Dude why the *censored* don't u hide the folder somewhere in the windows and add Hidden from properties? U can also try do delete the search from start and from right click menu so others can't search for it...or u can just save ur data on a Stick... :o
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 29, 2009, 09:07:39 PM
Dude, why don't you watch your language.
Title: Re: Autorun program folders
Post by: BC_Programmer on May 29, 2009, 10:18:04 PM
network drives have autorun disabled by default and folders don't have autorun abilities, only drives.
Title: Re: Autorun program folders
Post by: Dias de verano on May 30, 2009, 05:02:23 AM
Dude, why don't you watch your language.

"*censored*" is bad language? I guess I misread the calendar. I thought it said 2009, not 1899.
Title: Re: Autorun program folders
Post by: Carbon Dudeoxide on May 30, 2009, 05:12:06 AM
What the *censored* are you talking about, Dias?

Perhaps it was better to say 'watch your attitude'? ::)