File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime.getRuntime() and XP directory name spaces

Geoff Cottle
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone

This code opens the default text editor with a directory path string and file name -- at least it does on windows 2000 ! no matter whether the directory path "logFileDirectoryString" contains spaces " " or not i.e. C:\Documents and Settings etc

On XP however It does not work it tries to open "C:\Documents"

I have tried substituting "" for spaces, enclosing paths with spaces with
"". I am running out of ideas.

Please help
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic