Script

FTP

The professional tool to automate FTP, SFTP, FTPS

and schedule FTP batch jobs

Syntax:

LOCALCWDIR()

Remarks:

As this command does not accept any parameters the brackets are optional.
This command does not produce any output in the ScriptFTP window. It will always be silent.

Return value:

This command never reports an error. The return value always is the current local directory.

See also:

LOCALRMDIR
LOCALMKDIR
CWDIR
CHDIR

Examples:

# Connect to server
OPENHOST("ftp.myhost.com","myuser","mypassword")
 
# Show the current local directory
$a=LOCALCWDIR()
PRINT($a)
 
# Change current local directory
LOCALCHDIR("C:/backup/docs/")
 
# This syntax is also valid
$a=LOCALCWDIR
 
# Should show C:/backup/docs
PRINT($a)
 
# Close the connection
CLOSEHOST