Universal Naming Convention

Universal Naming Convention (UNC) provides a more flexible way to refer to files as opposed to using drive letters (e.g., D:). The syntax for UNC is as follows:

\\servername\sharename\path\filename

Using UNC Names in Operations

The preferred way to refer to network files in an Operation is to use UNC naming.  However, to use UNC naming you must consider the way the SmartBatch and Remote Agent service are configured (see About Services and Service Environment and Security).

 When initially configured, SmartBatch is installed as a service under the System Account logon. By default, System Account does not have access to network resources, including files.  If you need to access network files, the SmartBatch Service can be changed to run under a specific account that has access to the necessary resources.  In addition, services do not automatically map drives since they provide a batch logon rather than an interactive logon.  Even if you are logged on interactively, services do not have access to interactively mapped drives.  

The best approach to avoid file naming problems is to use the universal naming convention (UNC naming) when accessing network files.  For example, to copy a file from system NY to SF the Operation would be configured as:

cmd.exe /c copy \\NY\Ddrive\MyData\Important.Dat, \\SF\GDrive\Import\Important.Dat

Note:  DDrive and GDrive are shares that have been created on \\NY and \\SF.

To change the SmartBatch or Remote Agent Services to run under a Specific Account

1.Open up the Control Panel Services applet.

2.Scroll down and then double-click on the SmartBatch service or Remote Agent Service.  

3.In the Log On As panel click on This account.

4.Use the browse button to select an account for the SmartBatch service to use for its logon.

5.Enter the Password and Confirm Password.  

You must stop and then restart the service for this change to take effect.