Jump to content

Two Line of command?


Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...