Jump to content

Persistant Drive Mappings


Recommended Posts

Hello, I am still using version 2 and need to find all persistant drive mappings for our office and write them to a text file.

I have seen some reference in version 3, but I have not looked at 3 yet and am not advanced enough yet to pick up 3.

If anyone can show me how to do this in 2 I would be most grateful..

Thanks in advance..

Link to comment
Share on other sites

I had this code on hand:

MsgBox(4096,"Mappings", _GetMappedDriveInfo())
Exit

Func _GetMappedDriveInfo()
   Local $i, $letter, $info, $t = ""
   For $i = Asc("A") to Asc("Z")
      $letter = Chr($i) & ":"
      $info = DriveMapGet($letter)
      If Not @error Then $t  = $t & $letter & "  " & $info & @CRLF
   Next
   Return $t
EndFunc
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I had this code on hand:

MsgBox(4096,"Mappings", _GetMappedDriveInfo())
Exit

Func _GetMappedDriveInfo()
   Local $i, $letter, $info, $t = ""
   For $i = Asc("A") to Asc("Z")
      $letter = Chr($i) & ":"
      $info = DriveMapGet($letter)
      If Not @error Then $t  = $t & $letter & "     " & $info & @CRLF
   Next
   Return $t
EndFunc

<{POST_SNAPBACK}>

I think that is for version 3 which is fine, I am not familiar with 3 yet so if you could give me a hand. How do I write that to an excel spreadsheet instead of a textbox? Also, I would like to pull the user ID along with the mapped drive data so we know who had what.

I really appreciate any help..

Thanks, Mark.

Link to comment
Share on other sites

Oops, I completely misread what you said about version 2 or 3--and I missed the fact that your post was in the v2 Support forum :">

Either way, we would need more information... Is this script going to run on each individual's computer or on a server or?... I don't know a whole lot about networking though. It seems there would be a way to find this without needing AutoIt.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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