Sign in to follow this  
Followers 0
hunt

Sending command line parameters in running script

10 posts in this topic

Help please. I can't found information about this.

Problem:

I have a script which associated with extension (.dem). When i run .dem file then script reads command line parameters and calls a function.

How to send command line parameters in running script when i the second time run .dem file.

Sorry for my english.

Share this post


Link to post
Share on other sites



not sure if I understand correctly, maybe this?

$Command = 'net user'; command line parameter
Run(@ComSpec & ' /k ' & $Command)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

oMBRa

No, i'm need to send command line parameters in already running script and execute "exit".

Edited by hunt

Share this post


Link to post
Share on other sites

command line parameters are additional information that you add when you run a program

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

oMBRa

I know this :D

It is difficult to me to write in English.

I tried again.

When i run script in first time with parameters then script must to work normal but when i run this script in second time with other parameters then i need to send this parameters in previous instance of running script for calling function in this previous running script.

Edited by hunt

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Write the info you want in a file in @TempDir, so all instances can read and write from it.

Edited by Inverted

Share this post


Link to post
Share on other sites

Inverted

I tried to use the register for this purpose but would like to find a fast way at which it would be not necessary to check the register through certain time.

Share this post


Link to post
Share on other sites

Help please. I can't found information about this.

Problem:

I have a script which associated with extension (.dem). When i run .dem file then script reads command line parameters and calls a function.

How to send command line parameters in running script when i the second time run .dem file.

Sorry for my english.

You could try to use StdinWrite() and StdoutRead(), but i'm not sure if you can get around having to run the second process as the firsts' STDOUT_CHILD.

Share this post


Link to post
Share on other sites

Tvern

I thought about this but this way does not approach because when i run a file, associated with an autoit-script, then autoit-script process cannot be child.

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