How to handle spaces in using path to the file
807589Nov 24 2008 — edited Nov 24 2008Hi Friends,
I am getting error "file not found" if I give path of the file that contains spaces in it. (eg. C:\Users\Sample Project\file.txt)
If I give path that doesn't contain spaces (eg. C:\Users\Sample\file.txt) then it works fine without any error.
Basically I am invoking one command at runtime (using "exec") in my java program that excepts path of the file as one parameter.
I can't remove space by manipulating path - othewise that path will be different.
How can I solve this issue?
Thanks