cadsmcmd fails where item value contains "\"

Document ID : KB000070241
Last Modified Date : 23/02/2018
Show Technical Document Details
Introduction:

cadsmcmd fails where item value contains “:\

Example:

Package Details
name = hello C:\
version = 6.0
Source = file hello.bat
procedure = hello 

C:\> cadsmcmd install version="6.0" procedure="hello" computer="<computername>" cname="testhello" after="exacttime" unsealed nolinkage item="hello c:\"

CA IT Client Manager r12
ITCM Command Line Version 12.8.0.690
Copyright (c) 2013 CA. All rights reserved.

Trace mode: Off
Connecting to manager "<default manager>" as user "<default user>" ...OK.
Manager: Test123.ca.com
Domain: Test123
Domain type: Domain
Supporting: CO CCNF USD OSIM AM
SDCMD<A000101>: Software does not exist

The command with “:\” fails

Environment:
All versions of CA Client Automation
 
Instructions:
"\" is considered as an escape character. For it to be used as an argument in the cadsmcmd command, it should be prefixed with another "\" as the argument i.e., “\\”

In this example the command would be:

C:\> cadsmcmd install version="6.0" procedure="hello" computer="<computername>" cname="testhello" after="exacttime" unsealed nolinkage item="hello c:\\"