gr1fter Posted July 28, 2010 Posted July 28, 2010 Hello, I have a script that maps a drive as the local system account to Q:\ i would like to search that directory for a file but it seems to only check the current user Q:\ drive which is not available. how can i check the local system account drive that is mapped to Q:\ if possible... thanks!
mlowery Posted July 28, 2010 Posted July 28, 2010 Have a look at DriveMapGet() if you need to determine the path that Q: points to. If you want to make sure that Q: has been mounted, you can force it to mount using the DOS "NET USE" commands, which will do the drive mapping through a command line. I do this for a script that scans a mapped network directory. I first check to see whether FileExists("Q:\"), and if not, I run the "NET USE" command to mount the drive before doing the scan.
gr1fter Posted July 28, 2010 Author Posted July 28, 2010 Have a look at DriveMapGet() if you need to determine the path that Q: points to.If you want to make sure that Q: has been mounted, you can force it to mount using the DOS "NET USE" commands, which will do the drive mapping through a command line. I do this for a script that scans a mapped network directory. I first check to see whether FileExists("Q:\"), and if not, I run the "NET USE" command to mount the drive before doing the scan.when i do DriveMapGet("Q:") i recieve a blank drive because the drive is mounted, but not mounted under the account im running autoit in. remember that my mapped drive is mapped to the local system account.
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