Loading...
Logo
Processing Forum
Hi all :)

I'm trying to use 'link()' to open folders (is this the best way to?) and everything works fine unless it's name has a space in. Otherwise I get a "java.net.URISyntaxException: Illegal character in path at index 17: C:/Users/KingD/My Documents" error.

If anyone can offer a possible solution it would be much appreciated :)
KingD.

Replies(5)

try "C:/Users/KingD/My%20Documents
Hi there :)

Thanks for your suggestion, but I now get this error message:

"java.io.IOException: Failed to open C:/Users/KingD/My%20Documents. Error message: The system cannot find the file specified."

Do I need to do anything to prevent the function thinking %20 is a string? Thanks again.
What are you trying to accomplish by the way? and which mode of processing you're using?  Java or JavaScript?

and what exactly do you mean saying open folders?
Hi :)

Sorry, for some reason I received no e-mail notification for that message, otherwise i would have replied sooner.

I am simply trying to open up specific folders with Windows Explorer via processing. Also I believe my mode is now in Java, since updating to Processing 2.0.1.

If you need any more information just ask :)
open() might work better than link().