Sending a RemoteCommand to a MFT Platform Server for Windows results in "The filename, directory name, or volume label syntax is incorrect" error

Sending a RemoteCommand to a MFT Platform Server for Windows results in "The filename, directory name, or volume label syntax is incorrect" error

book

Article ID: KB0076086

calendar_today

Updated On:

Products Versions
TIBCO Managed File Transfer Platform Server for Windows 7.2.x and 8.0.x

Description

Sending a RemoteCommand to a MFT Platform Server for Windows (MFT PSW) results in an error after upgrading from 7.1.x to a higher version when using DOS commands such as”copy” or “rename” in the remote command field.

Example errors

Failure message:
Partner issued message:
Failed execute. Message follows:
The filename, directory name, or volume label syntax is incorrect.

or

The system cannot find the path specified.

Issue/Introduction

Sending a RemoteCommand to a MFT Platform Server for Windows results in "The filename, directory name, or volume label syntax is incorrect" error

Environment

All supported environments

Resolution

MFT PSW v7.2.0 Hotfix HF-008 or higher is required and the following "CmdQuotes" registry entry must be manually created as a DWORD:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Proginet\CyberFusion Server\CmdQuotes

MFT PSW v8.0.x includes the fix and automatically creates the following required registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\Proginet\CyberFusion Server\CmdQuotes

This registry entry value is used to control how MFT PSW handles DOS commands submitted by clients as a remote command. Lets say the user submitted DosCommand args. Args can be one, many, space or tab separated.

Example : del /Q /F c:\temp\testabc

MFT PSW will check the CmdQuotes registry entry. The valid values are 0, 1, 2, 3:
  • 0 ( or does not exist or anything other then 1,2,3 ) :
          Default: cmd /c will be added in front of command, args will be put in quotes
          cmd /c DosCommand "args"
          Example : cmd /c del "/Q /F c:\temp\testabc"
  • 1 :
           cmd /c will be added in front of command, DosCommand with args will be put in quotes.
           cmd /c "DosCommand args"
           Example : cmd /c "del /Q /F c:\temp\testabc"
  • 2 :
           cmd /c will be added in front of command, DosCommand with args will be preserved the way they are received from Client side.
           cmd /c DosCommand args
           Example : cmd /c del /Q /F c:\temp\testabc
  •  3 :
            DosCommand with args will be preserved the way we received them from Client side.
            DosCommand args
            Example : del /Q /F c:\temp\testabc