hunt Posted June 12, 2009 Share 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. Link to comment Share on other sites More sharing options...
oMBRa Posted June 12, 2009 Share Posted June 12, 2009 not sure if I understand correctly, maybe this? $Command = 'net user'; command line parameter Run(@ComSpec & ' /k ' & $Command) Link to comment Share on other sites More sharing options...
hunt Posted June 12, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
oMBRa Posted June 12, 2009 Share Posted June 12, 2009 command line parameters are additional information that you add when you run a program Link to comment Share on other sites More sharing options...
DCCD Posted June 12, 2009 Share 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 Link to comment Share on other sites More sharing options...
hunt Posted June 12, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Inverted Posted June 12, 2009 Share 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 Link to comment Share on other sites More sharing options...
hunt Posted June 15, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
Tvern Posted June 15, 2009 Share 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. Link to comment Share on other sites More sharing options...
hunt Posted June 15, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
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