To rename a file or directory on the local system (the computer where JFTP is running), locate and select (highlight) the file or directory that you would like to rename and do any one of the following:
Local File -> Rename...
menu item from
the menu bar
Ctrl + Shift + R
(Command +
Shift + R
on Mac OS X) on your key board
Rename...
from the context menu
When you do any of the above actions, a new dialog titled
Rename Local File or Directory
is displayed allowing you to specify a new name.
From
Enter the name of the file or directory that you would like
to rename.
If you have selected a file or
directory in the local pane before opening the
Rename Local File or Directory
dialog, the
From
field is pre-populated with the selected object's name.
To
Enter the new name for the file or directory that you are
renaming.
Rename
Clicking on this button would rename (or try to rename) the
file or directory and closes the
Rename Local File or Directory
dialog.
Cancel
Clicking this button would discard the input you have
provided and closes the
Rename Local File or Directory
dialog.
Help
Clicking this button displays this help topic.
In the
From
and
To
fields, you may enter absolute, relative or UNC path names. Below are
a few examples to demonstrate how the rename works based on the input
you provide. All examples assume that your current working directory
is set to
C:\wd
.
Example 1
If you enter
old.txt
in the
From
field and
new.txt
in the
To
field, the file
C:\wd\old.txt
will be renamed to
C:\wd\new.txt
.
Example 2
If you enter
old.txt
in the
From
field and
subDir\new.txt
in the
To
field, the file
C:\wd\old.txt
will be renamed to
C:\wd\subDir\old.txt
. In this case, the file is actually moved to another directory. Make
sure that the directory
C:\wd\subDir
exists in order for this to work.
Example 3
If you enter
C:\dir1\sample.txt
in the
From
field and
C:\dir2\sample.txt
in the
To
field, the file
sample.txt
will be moved from
C:\dir1
to
C:\dir2
.
Example 4
If you enter
\\hostName\shareName\old.txt
in the
From
field and
\\hostName\shareName\new.txt
in the
To
field, the file
old.txt
will be renamed to
new.txt
on the remote machine.
All the above examples would work
well even with directories; i.e. you can rename or move directories
just the same way as you could with files.