druiddk Posted May 16, 2006 Share Posted May 16, 2006 Hello, this is only my 2nd post here so please bare with me Im in the process of trying to improve a couple of my old scripts (which are a combination of batch and vbs). Example: for /f "Tokens=5" %%i in ('%USBDRIVE%\Flora\Tools\REG QUERY HKCU\Identities /v "Default User ID"^|find "Default"') do set default_identity=%%i I would then like to grab the %default_identity into a variable in AutoIT... could someone give me a pointer? Sorry if this has already been discussed in an earlier thread (im sure it has, i just havent been able to dig it up). Link to comment Share on other sites More sharing options...
Micha1405 Posted May 16, 2006 Share Posted May 16, 2006 in this case you can use RegRead ( "keyname", "valuename" ) to set the variabe in Dos enviroment use EnvSet ( "envvariable" [, "value"] ) My TrayToolBar Link to comment Share on other sites More sharing options...
druiddk Posted May 16, 2006 Author Share Posted May 16, 2006 Thank you Micha1405.The RegRead will definately come in handy I just found this thread as well:http://www.autoitscript.com/forum/index.ph...topic=23593&hl=What I was primarly trying to do is kind of the opposite of EnvSet and I see it is called EnvGet - perfect 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