Partage de codes sources - CodesWall.info
Script Batch
> telnet.bat
Titre
telnet.bat
Postée le
20-06-2011
Affichée
1072
Mini-lien
Description
script
Etat
Contient des erreurs.
Code d'insertion
Options
Tweet
Téléchargement
@
set
tgateboxip=172.16.18.207
@
set
tgatepassword=rcs
@
set
tgatecommand1=en
@
set
tgatecommand2=show run
::@set tgatecommand3=cd /app/mfgpro/data/trng/intf/ex/BILLY
::@set tgatecommand4=cp -p *.* /app/mfgpro/data/trng/intf/ex/BILLY/arc
@
set
tgatecommand5=
exit
REM --------- CONNEXION ------------------------
@
start telnet.exe
%
tgateboxip
%
@
echo
set
sh=WScript.CreateObject
(
"WScript.Shell"
)>>
telnet.vbs
@
echo
WScript.Sleep 500
>>
telnet.vbs
@
echo
sh.SendKeys "
%
tgatepassword
%
"
>>
$tgateboxip.vbs
@
echo
WScript.Sleep 500
>>
telnet.vbs
@
echo
sh.SendKeys "
%
tgatecommand1
%
"
>>
telnet.vbs
@
echo
WScript.Sleep 500
>>
telnet.vbs
@
echo
sh.SendKeys "
%
tgatepassword
%
"
>>
telnet.vbs
REM --------- TRAITEMENT -----------------
@
echo
sh.SendKeys "
%
tgatecommand2
%
"
>>
telnet.vbs
@
echo
WScript.Sleep 500
>>
telnet.vbs
REM --------- EXIT ------------------------
@
echo
sh.SendKeys "
%
tgatecommand6
%
"
>>
telnet.vbs
@
echo
WScript.Sleep 500
>>
telnet.vbs
@
cscript //nologo telnet.vbs
del
telnet.vbs
Postez votre code-source
Informations
Catégorie *
-
ActionScript3
ASP
C
C#.Net
C++
COBOL
CSS
Delphi
Fichier .ini
HTML4
HTML5
Java
javascript
jQuery
Latex
MatLab
mIRC
MySQL
Objective-C
OCaml
pascal
Perl
Php
Python
QBasic
Ruby
Script Batch
Shell
SmallTalk
VB.Net
VBA
Visual Basic
XML
Autre
Titre *
(50 car. max)
Description *
(200 car. max)
Le code
Fonctionne
Ne fonctionne pas
Je ne sais pas
Source
* : Champs obligatoires
Fermer
Accueil
Poster
Actualités
Règles
Contact
Partenaires
Infos / Aide
ActionScript3
(1)
ASP
(0)
C
(70)
C#.Net
(5)
C++
(52)
COBOL
(0)
CSS
(21)
Delphi
(0)
Fichier .ini
(5)
HTML4
(16)
HTML5
(4)
Java
(50)
javascript
(37)
jQuery
(2)
Latex
(7)
MatLab
(3)
mIRC
(3)
MySQL
(13)
Objective-C
(1)
OCaml
(4)
pascal
(11)
Perl
(11)
Php
(61)
Python
(4)
QBasic
(1)
Ruby
(1)
Script Batch
(8)
Shell
(10)
SmallTalk
(1)
VB.Net
(5)
VBA
(5)
Visual Basic
(6)
XML
(18)
Autre
(19)
\n
Forum informatique