Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pwmode does not change mode 1

Status
Not open for further replies.

udainius

Programmer
Nov 6, 2002
3
US
I am trying to change terminal modes within my script and it will not change. I have used the following:

pwmode 0
pwmode 5
pwmode TERMINAL
pwmode TELNET

If these settings do not function can anyone help me by providing another way to do this?
 
The pwmode command worked OK on my old NT machine running 4.7, but the only modes I could switch to on my Win98 machine with 4.8 were news and mail. Unless this is an NT vs. Win9x issue, my hunch would be that the removal of the web browser from version 4.8 may have messed up the operation of the pwmode command.

If you look in pw5menu.inc in the ASPECT directory under your Procomm install, you can get the menu ID needed to switch back to telnet mode. This command should do the trick:

proc main
menuselect PWMENU 321
endproc

This will switch you from the current mode back to telnet mode. Curiously enough, there is no way to switch back to data mode, but once you are in telnet mode you would just need to choose a modem connection using the set modem connection command to get back to "true" terminal mode. aspect@aspectscripting.com
 
Hello,

After looking at Knob's Post, I played with this and it seems to work also:

proc main
#Include "c:\procomm\aspect\pw5menu.inc"
if $PWMODE != 4 ; if NOT in News Mode
pwmode 4 ; switch to News mode
Usermsg "MODE: %d" $PWMODE
endif
endproc

Hank camphm@bellsouth.net
 
I took a quick look on my NT machine at work with 4.8 and it was not able to switch to terminal, telnet, or FTP mode as well, so it looks to be a bug in 4.8 as opposed to an NT vs Win9x issue.
aspect@aspectscripting.com
 
Thanks knob, Your information lead me in the right direction. What I was able to do instead was use the dialnumber TELNET and dialnumber DATA commands.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top