![Quote](https://www.javaprogrammingforums.com/images/misc/quote_icon.png)
Originally Posted by
raji
I tries as u said.Here the pbm is the space in the file name.When we execute mv command due to the space in between system will consider the data after space as next parameter.Is there any way to move these kind of files.
The standard work around for files with spaces is the solution I outlined above (multiple arguments to exec)...on my system (unix) this works as expected (single argument exec does not). Since exec is a bit of a pain (and its commands system dependent) your mileage may very, but I'm sure if you play around with it using a test file you'll figure it out. Here's another thread over at the sun forums that draws out the same solution I did
Runtime.exec is not working when folder is having a white space in its name
.