Sign in to follow this  
Followers 0
Cyrael

Run scripts with parameters from other scripts

2 posts in this topic

I'm trying to make a program that, when handed a source directory, and a destination directory, it creates several child processes that are given file source and destination paths as it's parameters,

so that it basically makes individual threads for each file being moved.

So the master file is as follows:

$sourceDir = InputBox("Source Directory", "Navigate to Source Directory", @workingdir)
$targetDir = InputBox("Target Directory", "Navigate to the Target Directory", $sourceDir)

$params = $sourceDir & ' ' & $targetDir

Run(@workingdir & "\Runner.exe " & $params, @workingdir)

And the Runner file looks like this (obviously not actually what it ends up doing, I don't need help with this)

MsgBox('', '', "Starting")

if ($cmdLine[0] > 0) Then
  For $i = 0 to $cmdLine[0]
    MsgBox('','', $cmdLine[$i])
  Next
EndIf

Anyone know how to do this? The

Run(@workingdir & "\Runner.exe " & $params, @workingdir)
is the line that needs work.

Share this post


Link to post
Share on other sites



Ok... wow that's embarassing... that works right now... I just wrote that assuming it wouldn't...

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