Copying Files from Novell Server using UNC

(imported topic written by gbabbitt91)

Im trying create a task to copy files from a share on our server (Novell Servers if that matters) to the local PC. Since the servers will be different for each of our locations Im using a relevance to detemine the UNC Path.

This relevance seems to work ok

substring after "=" of (property "Providername" of it as string) of select objects "Caption, Providername from WIN32_LogicalDisk where Providername != NULL and caption = 'F:'" of WMI as string & "\Pointsec\swupdate\precheck.txt " & "%22C:\Program Files\precheck.txt%22"

When I try to use this in my task I am getting a Relevance substitution failed error.

copy "{substring after "=" of (property "Providername" of it as string) of select objects "Caption, Providername from WIN32_LogicalDisk where Providername != NULL and caption = 'F:'" of WMI as string}"  & "\Pointsec\swupdate\precheck.txt " & "%22C:\Program Files\Pointsec\precheck.txt%22"

Im sure I have this wrong but Im not having much luck troubleshooting it. Any ideas where Im going wrong? I apprecaite the help.

(imported comment written by BenKus)

Hi gbabbitt,

I think you got the closing braces in the wrong spot… try this:

copy "{substring after “=” of (property “Providername” of it as string) of select objects “Caption, Providername from WIN32_LogicalDisk where Providername != NULL and caption = ‘F:’” of WMI as string & “\Pointsec\swupdate\precheck.txt " & “%22C:\Program Files\Pointsec\precheck.txt%22”}”

Also this relevance requires the “F:” to be the drive letter… if the “F:” didn’t exist, then the relevance will fail.

Ben