Sign in to follow this  
Followers 0
gr1fter

Possible to do a FileExists as the Local System Account?

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0