jamesstp20 Posted March 3, 2010 Share Posted March 3, 2010 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 More sharing options...
Fulano Posted March 3, 2010 Share Posted March 3, 2010 (edited) 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 March 8, 2010 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 More sharing options...
jamesstp20 Posted March 4, 2010 Author Share Posted March 4, 2010 Ok thanks i will check Link to comment Share on other sites More sharing options...
jamesstp20 Posted March 6, 2010 Author Share Posted March 6, 2010 Im not sure to understand I just want to do 3 lines of command.. Thanks Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 6, 2010 Share Posted March 6, 2010 (edited) I think you want StdinWrite(). It's in the helpfile. Edited March 6, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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