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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clipper 5.2 and Windows NT workstation

Status
Not open for further replies.

fbizzell

Programmer
Jul 3, 2000
217
I have a small clipper 5.2 program that works fine under win 98 but will not work on NT workstation. I get an error bad command or file name on the following line:

!rasdial95 access xxxxxx zzzzzz
(the x's are my isp and the zzzzz are my password)

Here is the complete program:

*ISP.PRG
#include "inkey.ch"

DO WHILE .T.
CLEAR


do while .t.
@ 5,10 say "Connecting to internet"
@ 7,10
!rasdial95.exe access xxxxx zzzzz
@ 5,0 clear
@ 5,10 say "Connected...."
inkey(3600)
@ 5,10 say "Disconnecting from internet"
@ 7,10
! rasdial95 /disconnect
@ 5,0 clear
@ 5,10 say "Disconnected...."
INKEY(300)
LOOP
ENDDO

ENDDO

Any ideas?

 
The error message means that the program rasdial95.exe cannot be located in the any of the PATH directories. Use find files to locate it on the NT system and if it cannot find it then NT must use a different program to access the internet.

I've just searched my C drive (Win 98) and rasdial95.exe was not found. Do you know what application installed rasdial95.exe onto your Win98 system? Do you still have the install disks?

Apart from that I cannot help, sorry.
 
rasdial95 is a utility program that I downloaded from the internet several years ago. I have it in the same directory that I have the Clipper program in. I can execute it from the dos prompt and I can execute it from a batch file. I want to be able to execute it from within a Clipper program so that I can stay on the internet for 15 minutes, download my mail, then disconnect, and then connect again for another session and so on. As I say I can use it on a win98 workstation without a problem.

Thanks for your help.

 
Just a thought, and I don't know if this is any help, but maybe when NT shells out it does not make the current directory the current directory. Test this by "run command" and see what the current directory is.

Another thought, maybe when you shell out to "DOS", there is not enough memory available to execute the called program, so from the above test try "mem".

Other that these sugestions I'm stuck, good luck.
 
I think under NT this is called RASDIAL.EXE only. RAS has to be installed, though. The RasDial95 utility was not really needed because you could execute the same functionality using rundll32.exe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top