Jump to content

set a variable in Child Autoit.exe from the Parent Autoit.exe ..?


 Share

Recommended Posts

how can I set a variable in another Child Autoit.exe from the Parent Autoit.exe ..??

$DISK = DriveGetDrive("all")
For $I = 1 to $DISK[0]
$DriveLetter = StringLeft($DISK[$I], 1)
$DriveEXE = @ScriptDir&"\"&$DriveLetter&".exe"
FileInstall("C:\DriveCopy.exe", $DriveEXE)

For $Drive in $DriveEXE                        /
Assign($Drive, $DriveLetter, 2)          <-- Attempting to set a variable in another Child Autoit.exe from the Parent Autoit.exe 
ShellExecute($DriveEXE)                      \  

Next
Next

---------------------------------------------------
C:\DriveCopy.exe -AKA- $DriveEXE
---------------------------------------------------
MsgBox(0,"", $Drive&":\")
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...