Sign in to follow this  
Followers 0
Sean M

Change Properties of a config file

4 posts in this topic

I am trying to change the properties of a config file so that it is not read only. Is there an easy way of doing this without right clicking on the file and setting it there. I am also having a hard time navigating to the folder.

Send("#r")
    WinWaitActive("Run")
    sleep(250)
    Send("iexplore")
    Send("{ENTER}")
    ProcessWait("iexplore.exe")
    Sleep(5000)
    ControlFocus("Microsoft Internet Explorer", "", 41477)
    ControlSetText("Microsoft Internet Explorer", "", 41477, "c:\xxxxxxx")
    Send("{ENTER}")

This is the code that I am trying to use to navigate to the desired folder but it is not typing in the new text into the control of IE

Thanks in advance,

Sean

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

#include <IE.au3>

_IECreate ("c:\xxxxxxx") ; IE isn't usually used to open folders though

FileSetAttrib ( "config.cfg", "-R")

Edited by lod3n

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

Thanks,

I was stupid and did not do a search of attribute under the help files. lol

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