>How can I get the "Windows Script Host" or " WSH" to recognize server path?
>
>cSource = 'C:\Test1'
>cDestination = '\\Sever\test2'
>IF DIRECTORY(cSource)
> FSO = CreateObject("Scripting.FileSystemObject")
> FSO.CopyFolder(cSource, cDestination)
>ELSE
> MESSAGEBOX("Directory "+cSource+" does not exist.")
>ENDIF
>
If you're trying to create Test2 on \\Sever, you can't do it that way - a UNC path is in the form \\
servername\
sharename\
remainder of path. The FileSystemObject can't create a new share, only a folder beneath an existing share.