IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
When SilkTest adds a file to a project it will save the drive and path. For files that reside on the network it uses the UNC form. e.g.
\\Server1\TestApp\Plans\MainPlan.pln \\Server1\TestApp\Scripts\Tests.t \\Server1\TestApp\Windows\Frame.inc
Should the name of the server change or you want to copy files locally to a LapTop to work offsite this can cause a problem as the project file needs to be amended.
A workaround is to use the "subst" command as it can map a virtual drive to a network path
subst X: \\Server1\TestApp
The project then uses the X: drive rather than UNC e.g.
X:\Plans\MainPlan.pln X:\Scripts\Tests.t X:\Windows\Frame.inc
The Server can change or you can copy the files locally and redo the "subst" to point X: to a local drive and path e.g.
copy X:\*.* C:\MyFiles subst X: /d subst X C:\MyFiles
The project file can remain unchanged as it continues to use the X: drive.
SUBST Associates a path with a drive letter.
SUBST [drive1: [drive2:]path] SUBST drive1: /D
drive1: Specifies a virtual drive to which you want to assign a path. [drive2:]path Specifies a physical drive and path you want to assign to a virtual drive. /D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.