This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Grabbing File names only Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Grabbing File names only" Watch "Grabbing File names only" New topic

Grabbing File names only

Andy Lukavich

Joined: Nov 23, 2007
Posts: 7
Is it possible to just grab a file name, and turn it into a String to be used in another place in code?

What I am trying to do is allow the user to select the file they want to convert from XML into one of our document formats. Since you have to run the actual conversion command through DOS, i created a batch file that does the conversion.

I want to be able to grab that file name and add it to the batch file, so i can run the convert.

Any help would be appreciated.
Andy Lukavich

Joined: Nov 23, 2007
Posts: 7
Never mind, it came to me shortly after i posted this!
subject: Grabbing File names only
Similar Threads
Reference problem
run java code through bat file
Run A batch file
PDF to Excel conversion using Java
How to Run a batch file???