FTPCD Change to a new directory on an FTP site
<< Click to Display Table of Contents >> Navigation: Robo-FTP User's Guide > Script Programming > Script Commands > All Script Commands > FTPCD Change to a new directory on an FTP site |
Syntax: |
FTPCD |
[ dir name ] |
Arguments: |
[ dir name ] |
Variable or string defining the new directory name. |
Options: |
None |
|
This script command sets the current remote directory and writes the path to the console window. Any time Robo-FTP is connected to a remote site it has a current remote directory. By contrast, Robo-FTP always has a current working folder on the local PC.
The path of the current remote directory is saved in a internal script variable named %currentsitedir.
This is an example of the FTPCD command:
FTPCD "/newdirectory"
DISPLAY %currentsitedir
Like FTPCD, the FTPPWD script command also populates %currentsitedir and writes the path to Robo-FTP's main console window, but it does not change the current remote directory. The WORKINGDIR command sets current local working folder and writes its path to the console window.
Related command(s): FTPPWD, FTPLIST, FTPMAKEDIR, FTPDELDIR, FTPDELETE, FTPRENAME, WORKINGDIR
See Also: %currentsitedir, %currentlocaldir