book
Article ID: KB0087539
calendar_today
Updated On:
Description
Resolution:
When using the cd command in a PDS script for PDriver on Windows, an attempt to change directories to a UNC path or network drive will fail with a syntax error.
This is an issue with the cd command in Windows. It's not possible to use the cd command to change to a UNC path. The way to do this is to mount the network directory as a drive, change drives, and then change directories to the required one.
For example, to change to the following UNC path:
\\drive01\MyDepartment\bin\proj4\testdeal
you must first map \\drive01 to a new drive letter. This example will use the letter Q, but this will need to be an unmapped drive letter on your system.
To map the drive, change drives, and change directories:
net use \\drive01 Q
Q:
cd MyDepartment\bin\proj4\testdeal
or you could do the same using two commands:
net use \\drive01\MyDepartment\bin\proj4\testdeal Q
Q:
Issue/Introduction
PDriver cd fails with syntax errors in Windows