Jump to content
Sign in to follow this  

_Winnet_addconnection2 error

Recommended Posts


Hi All,

I don't understand why this isn't working. I am following the help file, but am doing something wrong...

Can somebody please help me out?

_WinNet_AddConnection2 ("Z:\", "\\mavts003\software$", $sUserName = d\username, $sPassword = password+, 2)

FileCopy ("Z:\software\setacl\setacl.exe", "C:\")

FileCopy ("Z:\Software\ETH\ETH_Fonts\TRUETYPE\*.*", "C:\windows\fonts\", 1)

I get the message that there is a problem with the _winNet_addconnection2. Missing separator character after keyword.


Share this post

Link to post
Share on other sites


you are not following the help file correctly. Try:

_WinNet_AddConnection2 ("Z:", "\\mavts003\software$", "d\username", "password+")



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.