Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

DriveMapAdd fails on Windows 7 x64 to Samba

$
0
0

I have a samba server and while net use works to map a drive with credentials, with my Autoit script using DriveMapAdd I only get an error, specifically 

 Undefined / Other error. Windows API, where @extended is set to 0.

 

I'm really running out of ideas, this used to work, but I'm not sure what the interaction issue may be. The big change was to a RHEL HA clustered samba service. I've tried everything I can find from Windows and Linux, and it seems to work with native tools at a logged in user at the command line. But if I then, with the same user, run a compiled autoit script to map the drive, it fails. It even fails if I do a 

RunWait("cmd /c net use X: \\server\share password /user:userName", "", @SW_HIDE) ...

 

note, if I do 

net use X: \\server\share password /user:userName

at the command line in the same session, it works.

 

I'm prefacing my attempts to map a drive with a DriveMapDel("x:") to avoid trying to map 2 times to the same drive letter...

 

Any ideas?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>