This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes How can a program point to a a different directory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How can a program point to a a different directory" Watch "How can a program point to a a different directory" New topic
Author

How can a program point to a a different directory

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
I have program in a source which needs to indicate a different directory
in the project. As in the following :

+ Main Directory
+ Sub Directory One
+ Recources <==== Desired directory
+ Sub Directory two
+ Source Directory
Executing program (Needs to point to Desired directory about.

How can I accomplish this in code.
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 310
Originally posted by Barry Brashear:
I have program in a source which needs to indicate a different directory
in the project. As in the following :

+ Main Directory
+ Sub Directory One
+ Recources <==== Desired directory
+ Sub Directory two
+ Source Directory
Executing program (Needs to point to Desired directory about.

How can I accomplish this in code.



I would think that you create an instance of File for the Resources directory. from there use the File class to create/rename/delete files.

I must say it has been a long time since I have done file I/O


CIAO Peter M. Cooke
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How can a program point to a a different directory
 
Similar Threads
NX: Locking the properties file ?
Packaging query
How to get multiple version of JDK running
subdirectorty in java using FILE I/O
JSP