Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2007, 09:42 PM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading files from thumbdrive.

Need to write a application using Java for a powerpoint presentation to autolaunch itself when it is plug in to the USB PORT of the computer. I need help. Can anyone provide me the important source codes needed for this application to work. Thank you. Please reply me as soon as possible.:)

 
Old May 16th, 2007, 08:20 AM
Registered User
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well it can be done using any exe fill not java. find any cd which has an auto run option.
there in the cd you will find file called "something.ini" copy this file into your usb drive and change the name of exe file in "something.ini" file to the exe of your presentation. when usb will be plugged it will automatically.
well i hope you are not using this to infect virus or keyloggers .


Zerone
Moderator At
www.chatbazaar.com
http://directory.chatbazaar.com
 
Old May 16th, 2007, 08:25 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The file is not an .ini file, it is an .inf. What you need to do is on your thumbdrive create a file named: autorun.inf and, at the most basic level, you need something like this:

[autorun]
open=myApp.exe


hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading large files ravichandrae Pro Java 1 January 11th, 2008 04:42 AM
Reading text files senthilreddy ASP.NET 2.0 Basics 1 May 22nd, 2007 08:32 AM
Reading from Excel Files interrupt Javascript How-To 8 September 28th, 2006 09:31 AM
Reading .ini files anisurr C++ Programming 2 February 7th, 2006 05:02 PM
reading files nightsurfer JSP Basics 0 August 10th, 2003 04:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.