Executing code upon folder/drive access

Executing code upon folder/drive access

I would be glad if someone could show me how to make your program in jar format execute when the folder that contains it is accessed or maybe a drive. Thank you.

View Answers

October 20, 2010 at 12:12 PM

Hi

In case of drive you can use Autorun.inf file.

In the Autorun.inf file you can include the following code:

[autorun]
open=yourprogram.exe
icon=autorun.ico

Hope this will solve your problem.

Thanks









Related Tutorials/Questions & Answers:
Executing code upon folder/drive access
Executing code upon folder/drive access  I would be glad if someone could show me how to make your program in jar format execute when the folder that contains it is accessed or maybe a drive. Thank you.   Hi In case
insert code jsp to access
insert code jsp to access   insert code jsp to access
Advertisements
code for insert the value from jsp to access database
code for insert the value from jsp to access database  code for insert the value from jsp to access database
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??  import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class add1 extends MIDlet implements
how to access element added via javascript dynamically using jsp code
not able to access these dynamically added textboxes values from my jsp code...how to access element added via javascript dynamically using jsp code  Urgent..Anyone please Assist how to access data from the elements added via
Sending error code to access log of tomcat server from Action class
Sending error code to access log of tomcat server from Action class  How to send an error code (500) to access log file when we get null value in an if condition in Action class? Is anyone aware of this! Thanks
mini project using html,javascript and ms access with source code
mini project using html,javascript and ms access with source code  I want a mini project which uses html and java script and backend as ms access with source code. plz send its important and urgent
access
access   This is Nitha Sriram i am having a problem that, i am having a combo box in the JSP page when i select an item from that i am calling the onchange function. In javascript i am getting the value now i want to pass
ERRor in executing DB program
ERRor in executing DB program  While executing following code an Error was generated.can any one help me for this. LiveDB liveDBObj = DataSourceFactory.getLiveDBInstance(); PreparedStatement pstmt=null; String qry=""; qry
ModuleNotFoundError: No module named 'executing'
ModuleNotFoundError: No module named 'executing'  Hi, My Python... 'executing' How to remove the ModuleNotFoundError: No module named 'executing' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'executing'
ModuleNotFoundError: No module named 'executing'  Hi, My Python... 'executing' How to remove the ModuleNotFoundError: No module named 'executing' error? Thanks   Hi, In your python environment you
while executing a java program
while executing a java program  while iam executing a simple java program after i type "java simple.java" there was a an error occuring.the error is "exception in thread "main" java.lang.noclassdeffounderror:simple" what thus
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?
have access to the source code)through java code?  public class... am getting output to this code as html tags.... But what i want is in a word document to the webpage(for which i don t have access to source code
executing Hibernate application
executing Hibernate application  when i am executing the hibernate application the following error occured. log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). /hibernate.cfg.xml not found log4j
Problem in executing query....
Problem in executing query....  Suppose there is a textbox or a text area and the user is supposed to enter any text.Suppose the user enters his text... gives it.How can I solve the error....   The given code
Charset problem upon publishing PHP + MySQL website
Charset problem upon publishing PHP + MySQL website  Charset problem upon publishing PHP + MySQL website
Given a code listing, determine whether it is a legal and appropriate way to programmatically access a caller's security context.
Given a code listing, determine whether it is a legal and appropriate way to programmatically access a caller's...;Next    Given a code listing, determine whether
Access Specifiers and Access Modifiers
Access Specifiers and Access Modifiers  What are Access Specifiers and Access Modifiers
Executing Set of SQL statements in Java
the code for saving the data in excel but the code for executing the query...Executing Set of SQL statements in Java  Hi, I am trying to execute a procedure which is stored in MS SQL server's database. I have configured
ModuleNotFoundError: No module named 'once-upon-a-time'
ModuleNotFoundError: No module named 'once-upon-a-time'  Hi, My... named 'once-upon-a-time' How to remove the ModuleNotFoundError: No module named 'once-upon-a-time' error? Thanks   Hi, In your
access specifiers and access modifiers
access specifiers and access modifiers  I want a powerpoint presentation for access specifiers and access modifiers. Please send me the same and soon
executing multiple sql statements on the single button click...
executing multiple sql statements on the single button click...  how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form
executing multiple sql statements on the single button click...
executing multiple sql statements on the single button click...  how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form
How to Access MS Access in jar.
How to Access MS Access in jar.  how do i access my Ms-Access file placed in the same jar file where my application code/class file r present??? Want to access it via Code or is their any alter-native?? Do i need any Driver to do
executing java program with 2 classes
executing java program with 2 classes  how to run a program of java containing more than one class....ex of program is given below.... class C...); } }   Executing java program with 2 classes save the file with D.java
validte method call upon ActionForm creation.
validte method call upon ActionForm creation.  I want to know if validate method is called when ActionForm object is created?   Hi, The validate method is not called when ActionForm object is created.ADS_TO_REPLACE_1
Executing JAR file - Swing AWT
Executing JAR file  Hello Friends! I have successfully created the JAR file of my project with the Manifest File including my Main Class. I had just gave the following command: C:\>jar cfm secl.jar
Empty screen after executing servlet - Development process
Empty screen after executing servlet  Hi, After executing servlet am getting blank screen. Am using weblogic server and Eclipse editor... send your Servlet code. Thanks
how to display the values of one list in other upon clicking a button in struts2
list upon clicking a button...Can any one provide me the sample code.. Hope...how to display the values of one list in other upon clicking a button in struts2  Hello friends..Am new to struts2..Please any one has to guide me
Help with opening a text file upon closing a program.
Help with opening a text file upon closing a program.  I need some... that file to open whenever the user exits the program. My code so far... static void main(String args[]) {   Not sure how that code came out
ms access
ms access  how to delete the autonumber from ms access using java delete code
wap showing three threads working simulteniously upon single object.
wap showing three threads working simulteniously upon single object.  wap showing three threads working simulteniously upon single object
MS access
MS access  how do i access my Ms-Access file placed in the same jar file where my application code/class file r present??? Want to access it via Code. Can anyone help me ? Please give reply urgent...   give me reply
Maven Dependency sbt-platform-executing-plugin >> 0.5.0
You should include the dependency code given in this page to add Maven Dependency of com.nocandysw >> sbt-platform-executing-plugin version0.5.0 in your project
Maven Dependency sbt-platform-executing-plugin >> 0.3.0
You should include the dependency code given in this page to add Maven Dependency of com.nocandysw >> sbt-platform-executing-plugin version0.3.0 in your project
Maven Dependency sbt-platform-executing-plugin >> 0.4.0
You should include the dependency code given in this page to add Maven Dependency of com.nocandysw >> sbt-platform-executing-plugin version0.4.0 in your project
Version of com.nocandysw>sbt-platform-executing-plugin dependency
List of Version of com.nocandysw>sbt-platform-executing-plugin dependency
Access Specifier
Access Specifier  What's the usage of getter and setter in access specifier? Thank You
Javascript coding for link a website to another upon verify the form - Java Beginners
Javascript coding for link a website to another upon verify the form  Pls tell me javascript coding for " open a website when we click the verify...; Hi friend, Code to solve the problem : New Document
Access level
Access level  Which access level allows exclusive access to the attributes and methods that belong to a class or classes derived from that class? default protected public private
Access web.xml init parameters
Access web.xml init parameters  How to access web.xml init parameters from java code
java programe executing error - Java Beginners
java programe executing error  i am creating one package to one class, but the compilation is succeed but how to execute the class  Hi Friend, If you have following java class: package newp; class Hello
executing mysql plsql block using hibernate
executing mysql plsql block using hibernate  I got one requirement like this, I have to execute following query by using hibernate DECLARE @i_STARTDATETIME DATETIME DECLARE @i_ENDDATETIME DATETIME DECLARE @o_ERRORCODE INT
creating and executing stored procedure using hibernate
creating and executing stored procedure using hibernate  I have to execute following query using hibernate DECLARE @i_STARTDATETIME DATETIME DECLARE @i_ENDDATETIME DATETIME DECLARE @o_ERRORCODE INT DECLARE @o_ERRORDESCRIPTION
Code
Code  code for connecting c lang to database
code
code    how to write this in java
code
code  code for android sample program
code for this is
code for this is  a b c d c b a a b c c b a a b b a a a code
code
code  please provide code for custom tags.by using currdate tag we need to get current date?please give me code
code
code   hi I need help in creating a java code that reminds user on a particular date about their festival. i have no clue of how to do it.. am looking forward to seek help from you

Ads