Executing code upon folder/drive access

Ads

 
 

Share on Google+Share on Google+

Samuel A.
Executing code upon folder/drive access
1 Answer(s)      7 years ago
Posted in : Java Beginners

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.

Ads
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


Ads









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
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
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
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 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
Access Specifiers and Access Modifiers
Access Specifiers and Access Modifiers  What are Access Specifiers and Access Modifiers
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
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. The validate
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
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 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
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
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...(String args[]) {   Not sure how that code came out like
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
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
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
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 to delete the autonumber from ms access using java delete code
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