Hello,
My first post on this forum.
I have a script that's copy one file from one directory to another.
But the \\10.10.100.12\Public\ERP\InFolder\ is a protected map.
I have opened this pad in File Exporer and put in the login and password.
If I run the script on my pc, it's no problem, the login and password is already in windows.
But on others systems it's a problem. The script giving an error message. He can not go to
the map. Because it's login and password projected.
Is there a way to put the login and password in the script?
Thankt for helping me.
My first post on this forum.
I have a script that's copy one file from one directory to another.
VBA Code:
Dim myFile As Object
Set myFile = CreateObject("Scripting.FileSystemObject")
Call myFile.CopyFile("G:\Transmissions Planning\Export FMS\Export naar FMS630.txt", "\\10.10.100.12\Public\ERP\InFolder\", True)
But the \\10.10.100.12\Public\ERP\InFolder\ is a protected map.
I have opened this pad in File Exporer and put in the login and password.
If I run the script on my pc, it's no problem, the login and password is already in windows.
But on others systems it's a problem. The script giving an error message. He can not go to
the map. Because it's login and password projected.
Is there a way to put the login and password in the script?
Thankt for helping me.