Re: move file to a directory wit

Cory Foy <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
Manon Baratt wrote:
> String command = "cmd /c move " + file + " " + destDir;

If you absolutely, positvely *must* use cmd /c move, just wrap the file 
and destDir in quote:

String command = "cmd /c move \"" + file + "\" \"" + destDir + "\"";

But I'd highly recommend just using a File object.

-- 
Cory Foy
http://www.cornetdesign.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.