This content has been marked as final. Show 4 replies
First, your address translates into "\\\\app\\comm\\LATEST"
Second, what kind of directory is this? Looks more like a local network machine...
This is a directory on a local network machine..
Can't we change directory name on a network machine?
What would be the right format of giving the directory name, if we can?
Please let me know
First of all, you won't be accessing another machine with File class, that's for the local machine.
You'll have to use some library for that... Google it.
If you can do this renaming from a command line, I think you can do it in Java, although I heard some rumors that
there may be problems with Universal Path Names. Anyway, try it from the command line and please post the
relevant contents of the Command Prompt here (copy and paste), so we can convert it to Java.
Edit: If I understand well, oldDir.exists() returns false. This is because a Universal Path Name starts with 2 backslashes, which translate to 4 in your string.
Edited by: baftos on Sep 8, 2008 4:40 PM