how do i create a batch file for the following task ?

jraju

New member
Member
VIP
Local time
6:37 AM
Messages
759
I am newbie in programming
please kindly supply a batch code to execute a batch file to know the status page details

i use telnet ip x x x x to go to router page
then i want to get the userid: as admin and it should automatically Enterkey to get password. i want this to be automated

after entering , the promtwill give password:, this i will fill my pw
after this i wll get to telnet screen with prompt c:\windows\system32>
Here iwill issue command show status
This will give the details of the router status page
This details should be shown in desktop, waiting for my closing.
after closing, the program should stop execute. If some experts give codes for batch file, i will make ti execute with task scheduler
Now, each time i have to login to the router and supply pw to get the status age.
expecing your replies experts
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
look for telnet scripting tool TST10.exe on web
Can automate the login via telnet, id and pwd entry , run status command, and capture all output into log file.
Use task scheduler to autorun at regular intervals.
 

My Computer

Computer type
Tablet
Computer Manufacturer/Model Number
lenovo miixxx
OS
Win 8.1 32bit
CPU
atom?
Memory
2.00 GB
Graphics Card(s)
(1) Intel(R) Graphics Media Accelerator
Sound Card
High Definition Audio Device
Screen Resolution
1280x800x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
29GB Samsung MBG4GC (SD (SSD))
Internet Speed
45Mbps over wifi, 8Mbps using RJ45 ?
Antivirus
mbam
Browser
chrome
look for telnet scripting tool TST10.exe on web
Can automate the login via telnet, id and pwd entry , run status command, and capture all output into log file.
Use task scheduler to autorun at regular intervals.
Hi, i do not want to go and look a log file.
what i want is just a dos window to wait for my closure
cannot i do in batch
i want the code for that
or are there no dos command to execute it
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
Hi, dave, i have downloaded the said tst10 tool.
But when i open it, it just shows some example script.
There is no help of how to use it.
Should i delete those sample scripts and write new one there
The problem is i do not know anything about script writing.
When i just write echo on telnet ip, i get the user screen.
It is waiting for my input, which i want it to auto fill with the code and pw also.
Once it goes to the page, when i type show status, it shows the entire status , like mode, firmware datea and important speed as at the time of execution.
I ask this, because, i am getting two types of ips, groupips and individual ips of dynamic ips by my ISP
when i log in to group ip, i had slow internet download speed and when individual ip is allotted , i get my regualr or allotted speed. To find this , iif i have the script , i could watch important parameters of router statistics.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
There are lots of free tools to do all this
 

My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Would you kindly help with code
There is goto cmd. But I want it takes uid and pw from the bat itself.
How to go about. I am newbie in coding.

Icould get thro cmd but automation is what I need
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
use telnet /? at the cmd prompt.
that will give list of allowable commands with telnet.
Dont automate it unless you have got the right command syntax.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
Hi,iko,
I lnow the cmd commands
Only want batch codes
It is not general command
It is for knowing router status
Have given all cpmmands
Want codes for auto getting us id and pw from batch file itself
experts
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Motherboard
To be filled by O.E.M. To be filled by O.E.M.
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 210
Sound Card
(1) NVIDIA High Definition Audio (2) Realtek High Definiti
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3500312CS ATA Device
There are no batch codes, a bat file uses cmd commands. PowerShell also uses cmd commands.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
Hi jraju, are you talking about saving the file as a .bat or .cmd and then running it?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
Back
Top