Page 1 of 1

Telnet and cd script

Posted: 06 May 2009 05:58
by SNWBRDR
I need a script that opens a cmd prompt, do a telnet to a certain server, change the path, run script on the server and change the path again.
Because now, I have to do this each time.

The things I type in is something like this:

telnet server
cd ../..
cd x/y/z1
script.bat
cd ..
cd z2

But I can't make a script to do this.
And I tried lots of things.

Somebody has any idea how to do this?

SNWBRDR