>>>>You can try WSH
oNet = CreateObject("WScript.Network")
>>>>oNet.MapNetworkDrive("Z:",< remote drive >, < user name >, < password >)
>>>
>>>
>>>TA Sergey. This worked nicely on my local network but wasn't able to connect trough an Internet connection. am I missing something?
>>>
>>Maybe remote server isn't configured to share it's drive?
>
>Yes it is and I have the user name and password as well but it keep returning an error message saying cannot find the network path. I've checked the remote server IP Address and shared drive's name but doesn't work.
If you can't map it with NET USE (eg. NET USE Z: \\192.168.1.1\ShareName), then something is blocking the connection. If you're running a personal firewall (or a firewall on the server side), more than likely that's the problem. The firewall(s) have to be configured to allow that kind of traffic to pass through. The specific steps for doing this really depend on the firewall(s). You'll need to check the manuals if this is the case.