Logging to a network folder with username/password

T

Teddy

Hi group

I want to check a remote network folder using "dir"

If dir(REMOTE_HOME, vbDirectory) = "" Then
MkDir (REMOTE_HOME)
End If
after this I want to place a file in the folder...



I works if I have mapped up the server in explorer.

If I don't have the mapped drive dir(REMOTE_HOME,vbDirectory) fails
with error 52
"Bad file name..."

How do I temporary connect to the server and placing the file in the
folder?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top