hunt Posted June 12, 2009 Posted June 12, 2009 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.
oMBRa Posted June 12, 2009 Posted June 12, 2009 not sure if I understand correctly, maybe this? $Command = 'net user'; command line parameter Run(@ComSpec & ' /k ' & $Command)
hunt Posted June 12, 2009 Author Posted June 12, 2009 (edited) oMBRaNo, i'm need to send command line parameters in already running script and execute "exit". Edited June 12, 2009 by hunt
oMBRa Posted June 12, 2009 Posted June 12, 2009 command line parameters are additional information that you add when you run a program
DCCD Posted June 12, 2009 Posted June 12, 2009 $CmdLine[0] . [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group
hunt Posted June 12, 2009 Author Posted June 12, 2009 (edited) oMBRaI know this 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 June 12, 2009 by hunt
Inverted Posted June 12, 2009 Posted June 12, 2009 (edited) Write the info you want in a file in @TempDir, so all instances can read and write from it. Edited June 12, 2009 by Inverted
hunt Posted June 15, 2009 Author Posted June 15, 2009 InvertedI 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.
Tvern Posted June 15, 2009 Posted June 15, 2009 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.
hunt Posted June 15, 2009 Author Posted June 15, 2009 TvernI 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now