Jump to content

DriveMapAdd persistent mapping


s_oliver
 Share

Recommended Posts

Hello,

How can i combine   $DMA_PERSISTENT and  $DMA_AUTHENTICATION in one Script? I tried different things, but nothing seems to work. Can someone help me?

 

#include <AutoItConstants.au3>
DriveMapDel("H:, J:, L:")
Sleep(2000)
DriveMapAdd("H:", "\\sfile-23-001\home\osic", $DMA_AUTHENTICATION)
DriveMapAdd("J:", "\\srv02\share", $DMA_AUTHENTICATION)
DriveMapAdd("L:", "\\srv02\support", $DMA_AUTHENTICATION)

 

 

Link to comment
Share on other sites

DriveMapAdd("H:", "\\sfile-23-001\home\osic", $DMA_AUTHENTICATION + $DMA_PERSISTENT)

 

Edited by TheDcoder

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...