File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Grabbing File names only

 
Andy Lukavich
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, it came to me shortly after i posted this!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic