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
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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.