Jump to content
Sign in to follow this  
druiddk

Grabbing "dos" Variable Into Autoit Variable?

Recommended Posts

druiddk

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).

Share this post


Link to post
Share on other sites
Micha1405

:)

in this case you can use

RegRead ( "keyname", "valuename" )

to set the variabe in Dos enviroment use

EnvSet ( "envvariable" [, "value"] )

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  

×