Calling
net use F: \\my\destination\folder /user:myuser password
works fine.
When in a Batch file, it says "System error 86" ( = wrong password)
How can this be ? Is the batch file somehow encoded differently ?
Calling
net use F: \\my\destination\folder /user:myuser password
works fine.
When in a Batch file, it says "System error 86" ( = wrong password)
How can this be ? Is the batch file somehow encoded differently ?
Found it:
setlocal disabledelayedexpansion
did the trick
The password contained a "!" and somehow had to be escaped.
The weird thing is that during this hour of desperate testing, we came across some strange effects that were probably caused by windows caching network passwords (at least we came to this conclusion)