Sign in to follow this  
Followers 0
DJones

Running a dos command and variables

2 posts in this topic

How can I run a dos command and use dos variables without have to use envget first...

; Create top level OU

Envset ("topou", "RAK Tire")

Envset ("addc", "review")

Envset ("addcend", "sso")

; TOP LEVEL

runwait 'dsadd ou "ou=%topou%,DC=%addc%,DC=%addcend%" ', @WindowsDir, @SW_HIDE

Share this post


Link to post
Share on other sites



fill the variables in your script and then use them like below

runwait('dnsadd ou ou=' & $topou & ',Dc=' & $adddc & 'DC,=' & $addcend,@WindowsDir,@Sw_Hide)

Andre


What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!

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