Attempt to load a file from the command line results in the errorRTE E ==>Error!! failed to parse command, execution aborted::

Attempting to load an unload file on Windows from the command line can result in an error when the file path contains a backslash ‘\’

For example this command line:

sm file.load c:\clocks.unl NULL NULL winnt

will result in these errors:

RTE E ==>Error!! failed to parse command, execution aborted:
RTE E ‘sm file.load c:\clocks.unl NULL NULL winnt’
RTE E Please examine/correct your parameters, then resubmit the command.

Cause

The backslash character is interpreted as an escape character in which the data following the backslash is read as input.

Fix

Use a double backslash, \\

sm file.load c:\\clocks.unl NULL NULL winnt

to allow SM to read the backslash as a backslash

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s