Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 09-29-2007, 03:44 AM
foggycactus foggycactus is offline
Registered User
Join Date: Sep 2007
Location: china
Posts: 3
can't telnet to winxp logging?

For some reason when I try to close the log file in script it generates an empty file.
I am using the following code:

Set b = crt.session.ConnectInTab("/telnet 23")
b.Screen.Send vbCr
b.Screen.Send "Administrator"&vbCr
b.Screen.Send vbCr

{do something else............}

b.screen.Synchronous = True
b.Session.LogFileName = "D:\1.log"
b.Session.Log True,True

b.screen.waitforstring ">",1
b.Screen.Send vbCr

b.screen.WaitForString "ftp>",2
b.Screen.Send("get "&downfile&vbCr)
b.screen.WaitForString "ftp>",2
b.Screen.Send("get "&upfile&vbCr)
b.screen.WaitForString "ftp>",20

b.screen.waitforstring ">",10
b.Screen.Send vbCr
crt.sleep 20000
b.Session.Log False
b.screen.Synchronous = False

can anyone help me?thanks for your help.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 02:32 PM.