KRename Method

Navigation:  Reference Guide > Kermit Commands > Methods >

KRename Method

Previous pageReturn to chapter overviewNext page

Performs a Kermit "Rename" command.

[Visual Basic .NET]

Public Sub KRename(ByVal OldFile As String, ByVal NewFile As String)

[C#]

public void KRename(string OldFile, string NewFile);

Parameters

OldFile

   The relevant path name of the original file on Kermit server.

NewtFile

    The relevant path name of the new file on Kermit server.

 

Remarks

After this command is executed on Kermit server, Kermit sends the command execution status back to MegaPipe and KCommandDone event is fired indicating whether this command is executed successfully or execution fails (an error message is passed back).

 

See Also

KCommandDone Event