Telnet and cd script

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
SNWBRDR
Posts: 1
Joined: 06 May 2009 05:51

Telnet and cd script

#1 Post by SNWBRDR » 06 May 2009 05:58

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

Post Reply