Share this post

Link to post

Share on other sites

RTFC 236

RTFC 236

Okay, let's try and stop confusing one another, shall we? CyBoRgWaR, as I understand your question, you just want to know what values your former employee used at the command line when starting this script, right? The script receives username and password at the command line, which it then parses to some other programme through Send commands later on.

Well. bad news, because once the process itself is no longer running, the command line parameters are (usually) no longer retrievable either, which makes perfect sense, because you wouldn't want somebody else to be able to retrieve your secret password by storing it in your start-up script or an ini file. So that's probably why this script was designed this way in the first place, so the password was only ever going to exist transiently as a command line parameter, and not physically stored anywhere.

Share this post

Link to post

Share on other sites

CyBoRgWaR 0

CyBoRgWaR 0

Okay, let's try and stop confusing one another, shall we? CyBoRgWaR, as I understand your question, you just want to know what values your former employee used at the command line when starting this script, right? The script receives username and password at the command line, which it then parses to some other programme through Send commands later on.

Well. bad news, because once the process itself is no longer running, the command line parameters are (usually) no longer retrievable either, which makes perfect sense, because you wouldn't want somebody else to be able to retrieve your secret password by storing it in your start-up script or an ini file. So that's probably why this script was designed this way in the first place, so the password was only ever going to exist transiently as a command line parameter, and not physically stored anywhere.

great explaination ... thanks a lot ,

i have 2 more questions ,

well if i want to do a same script like that , example i want to create a $username and $password , so where can i mention that in script so that i can get a script as similar as the one which i posted..

need some examples plz plz..

second one , it that any way i can get the values of $username and $password ???????

Share this post

Link to post

Share on other sites

JLogan3o13 1,344

JLogan3o13 1,344

You need to actually read the material on $CmdLine in the help file; you would find most of your own answers. If you do a search on Command Line Parameters, you will find an explanation of how to incorporate these into your script. In the case of the script in your OP, $neid is the first parameter, $neip is the second, $userid is third, and $password if last. So if you create a similar script, when you compile it to an executable you would run it like this:

Share this post

Link to post

Share on other sites

CyBoRgWaR 0

CyBoRgWaR 0

You need to actually read the material on $CmdLine in the help file; you would find most of your own answers. If you do a search on Command Line Parameters, you will find an explanation of how to incorporate these into your script. In the case of the script in your OP, $neid is the first parameter, $neip is the second, $userid is third, and $password if last. So if you create a similar script, when you compile it to an executable you would run it like this: