Jump to content

Pass value from AutoIt script to batch file...


StMaSi
 Share

Recommended Posts

You can use the EnvSet function to create a variable that can be referenced from the batch file as long as the batch is spawned from the same script.

Crude example:

EnvSet("testvar","Oh Yeah!")
Run(@ComSpec & " /k echo %testvar%")

 

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
 Share

×
×
  • Create New...