Rusty Lugnutz Posted April 7, 2005 Share Posted April 7, 2005 New to using AutoIt. Have been looking over the help files and scripts and each one seems to have a little of what I am looking for. I would like to create a script to run on users computers to list the mapped drives and send them to me in an e-mail. I am looking to get help on some of the base code or suggestions to point me in the right direction. thank you Rusty. Link to comment Share on other sites More sharing options...
Ejoc Posted April 7, 2005 Share Posted April 7, 2005 Why do you need this? The reason I ask is it sounds like it could be used maliciously. DriveMapGet() maybe? Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Rusty Lugnutz Posted April 12, 2005 Author Share Posted April 12, 2005 Each department on my network has there own Logon scripts and through the years I have added manual mappings to individual user computers. I am upgrading our network and wanted to create a list of the drives that everyone is using. so when I create the new scripts we now have a wider range of covereage. plus I wanted to work with the autoit program more. Still trying to learn the code. Link to comment Share on other sites More sharing options...
nobby Posted April 12, 2005 Share Posted April 12, 2005 Here is a script that will get the network drive and write to a text file.$var = DriveGetDrive( "network" ) $log = "c:\temp\" & @username & ".txt" MsgBox(0,"",$log) FileOpen("c:\temp\" & @username & ".txt",1) FileWriteLine($log, @username & ", " & @computername) If NOT @error Then For $i = 1 to $var[0] $result= $var[$i] & DriveMapGet($var[$i]) FileWriteLine($log, $result) Next EndIfYou can replace the c:\temp by a network location, this way you can check the results. I don't think autoit can email the result direct. You may have to result to third party software like "mailsend" or Bmail CheersNobby Link to comment Share on other sites More sharing options...
jdickens Posted April 12, 2005 Share Posted April 12, 2005 You may want to take a glance at this:http://www.autoitscript.com/forum/index.ph...992entry70992It reveals several approaches to finding mapped drives from a machine.J If I am too verbose, just say so. You don't need to run on and on. Link to comment Share on other sites More sharing options...
Rusty Lugnutz Posted April 13, 2005 Author Share Posted April 13, 2005 Thx everyone for the info. I will take all of this into consideration. I will post later with what I came up with. Thank you once again. Newbie Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now