Jump to content
Sign in to follow this  
jamesstp20

Two Line of command?

Recommended Posts

jamesstp20

Hi, I want to do this:

Run("plink.exe -batch root@" & $test & " -pw " & $test2 ,"")

cd ..

cd ..

But how can i do this on the same Window but in an other Line..

My code:

$test = InputBox("Adresse IP", "Veillez indiquez l'adresse IP de votre iPod Touch/iPhone")
$test2 = InputBox("Mot de Passe SSH", "Veillez indiquez votre mot de passe SSH (Par Default ces alpine")
Run("plink.exe -batch root@" & $test & " -pw " & $test2 ,"")

Thanks

Share this post


Link to post
Share on other sites
Fulano

InputBox is a very simple way of interacting with a user, if you want both on the same window I would suggest looking at the GUI section of the documentation.

This is what you want, correct?

+------------------------------------+
|   Username & Password              |
+------------------------------------+
|                                    |
|   Username: ___________________    |
|                                    |
|   Password: ___________________    |
|                                    |
|                               [OK] |
+------------------------------------+

Edit: Forgive the ascii art :/

edit: just re-read the op, I grossly misunderstood the question.

Edited by Fulano

#fgpkerw4kcmnq2mns1ax7ilndopen (Q, $0); while ($l = <Q>){if ($l =~ m/^#.*/){$l =~ tr/a-z1-9#/Huh, Junketeer's Alternate Pro Ace /; print $l;}}close (Q);[code] tag ninja!

Share this post


Link to post
Share on other sites
jamesstp20

Im not sure to understand :mellow:

I just want to do 3 lines of command..

Thanks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.