5.42.9 RENAME

The RENAME command is used to rename a file or folder on the Windows file server.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

RENAME

SERVER

value

Optional: File server.

DOMAIN

value

Optional. Windows domain.

USER

value

Optional. User

PASSWORD

value

Optional. Password

FROM

value

Mandatory. Windows server file or folder.

TO

value

Mandatory. Windows server file or folder.

 

Example

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('RENAME FROM(/Shared/data.txt) TO(data-archive.txt)') TO_GET(#JSMSTS #JSMMSG)

 

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('RENAME FROM(/Shared/Data/ReportsBackup) TO(ReportsArchive)') TO_GET(#JSMSTS #JSMMSG)