Jump to content
Sign in to follow this  
jpalmerb

_Winnet_addconnection2 error

Recommended Posts

jpalmerb

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.

thanks!

Share this post


Link to post
Share on other sites
99ojo

Hi,

you are not following the help file correctly. Try:

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

;-))

Stefan

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.