need script help

J.R. Sitman
J.R. Sitman used Ask the Experts™
on
The code below was written for us to copy files from a local computer to our Citrix server.  On our previous Citrix server the strSource  was v:\photos.  The "V" was the mapped drive to "C" on the local computer.  The new Citrix Xenapp doesn't map the drives in the same manner.  When viewing the "C" drive from Citrix the path is Local disk (C: on spcala30)

How would I map that in the code? I tried c:\photo, didn't work.

Option Explicit
Dim strSource, strDest, strFolderName, strFolderPath
Dim objFSO

strSource = "v:photos"
strDest = "\\fileserver\community files\Public Files\Pet-Ark"

strFolderName = Right("0" & Day(Date), 2) & _
    MonthName(Month((Date))) & Year(Date) & "-SB"
   
   
strFolderPath = strSource & "\" & strFolderName


Set objFSO = CreateObject("Scripting.FileSystemObject")


objFSO.CopyFolder strFolderPath, strDest & "\" & strFolderName, True


WScript.Echo strFolderPath & " copied to " & strDest & "\" & strFolderName
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
Hi, have you tried using
strSource = "\\tsclient\c\photos"

Hopefully that works.  If not, I'll test it on my XenApp servers tomorrow.

Rob.
J.R. SitmanIT Director

Author

Commented:
I'll test later today.  They have to take some photos before I can test.  I'll post later.
J.R. SitmanIT Director

Author

Commented:
Not sure if it's working?  different error this time see attahment
script.png
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

Most Valuable Expert 2012
Top Expert 2014
Commented:
OK, I just tested on XenApp.  It turns out to need
strSource = "\\client\c$\photos"

Regards,

Rob.
J.R. SitmanIT Director

Author

Commented:
Thank you SOOOOO much.
Most Valuable Expert 2012
Top Expert 2014

Commented:
No problem. Thanks for the grade.

Rob.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial