Jump to content
Sign in to follow this  
jackylee0908

[Solved] How to deliver the VARs into Run() function as parameters for external batch script?

Recommended Posts

Hi sir and @VIP,

I want to deliver VARs into Run() function as parameters for external batch script execution, for example on below code:

$a = GUICtrlRead($N1BMCLANIP)
$b = GUICtrlRead($N1BMCAC)
$c = GUICtrlRead($N1BMCPW)
$d = GUICtrlRead($NumberCycle)
Run("a.bat $a $b $c $d", "")

And for a.bat the code is:

@echo off
echo %1
echo %2
echo %3
echo %4
pause

But the result I got is:

$a
$b
$c
$d
Press any key to continue . . .

So, I want to know how to deliver VARs for external tool uses?

Thanks.

Edited by jackylee0908

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...