Jump to content

Windows Explorer

Go to solution Solved by DW1,

Recommended Posts

I am new to AutoIt and am having an issue with opening windows explorer to a specific network folder location.

I did do some seatching on the forums and I found the following:

Run("explorer.exe" & "c:windows")

However this doesn't even work for me, and it isn't even a network location.


What I am ultimatly trying to accomplish is:

1. Open several explorer windows to different folder locations

2. Move each explorer session to different locations on the screen.

3. Do some folder serching in each session (same base search in each).

4. Select the results in the session

5. Change the file attribute to "read only"

6. Close each folder when completed.

Link to comment
Share on other sites

  • Solution

You are simply missing the space between "explorer.exe" and "C:Windows"

$sOpenFolder = "C:\Windows"
Run("explorer.exe" & ' "' & $sOpenFolder & '"')

That being said, all of the steps you listed can be done without opening eplorer windows.  You can do the searching in the background and change the read only flag in the background.

Link to comment
Share on other sites

Thanks for the help, I knew it had to be something overly simple and stupid I was doing wrong.

And yes at some point I will make this into a background process. But for now I want to verify my process.

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

  • Recently Browsing   0 members

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