Jump to content

Running a dos command and variables


DJones
 Share

Recommended Posts

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

Link to comment
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!
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...