ERROR_NOT_ENOUGH_MEMORY is usually misleading (it comes from Windows, not from 24x7). This error indicates the connection cannot be made. I guess in old Windows 3.0/3.1 days some programmer coded a generic error "not enough memory" for all "unknown" reasons. Anyway, if you have a valid connection setup it should appear as an icon in the Windows Start Menu/Settings/Network and Dial-up Connections/PNC. Click on this item manually and check if it can connect with the given user name/password. If it works it should work with RASDial. Another tip, here is how you can get the file name using just one line of code Before: Dim my_date string Dim my_file string Dim my_pos number Today( my_date ) Pos( my_date, "/", 1, my_pos ) Replace( my_date, my_pos, 1, "_", my_date ) Pos( my_date, "/", 1, my_pos ) Replace( my_date, my_pos, 1, "_", my_date ) Concat( "c:\\archive\\arch_", my_date, my_file ) After: Dim( my_file, string, "c:\\archive\\arch_@T"mm_dd_yyyy"" ) : Hello : I'm trying to use the Rasdial to connect to a PPP dial-up server and am : getting the following error: RAS Dialer Error: ERROR_NOT_ENOUGH_MEMORY : Note - The phone connection is being made, but the subsequent commands are : not being processed. : I can actually open up a dos command prompt and manually ftp files and take : advantage of the open Ras connection. : Below is the code I am using. : We have Windows 2000 as the operating system : Let me know how I can get this to work. : Thanks : Michael : This is the JAL Code : //////////////////////////////////////////////////////////// : // 24x7 Scheduler 3.4.17 : // Job Template: FTP download (known file names) : // Generated on 17-March-2004 10:30 : //////////////////////////////////////////////////////////// : // Download file(s) from FTP server. : Dim my_date string : Dim my_file string : Dim my_pos number : Dim( connection, number ) : dim my_dir string : dim my_found boolean : // Create a new file name using the current date to archive yesterday's file : Today( my_date ) : Pos( my_date, "/", 1, my_pos ) : Replace( my_date, my_pos, 1, "_", my_date ) : Pos( my_date, "/", 1, my_pos ) : Replace( my_date, my_pos, 1, "_", my_date ) : Concat( "c:\\archive\\arch_", my_date, my_file ) : FileExists( "C:\\PNCLB\\filename.txt", my_found ) : If( my_found, MOVE_FILE, MOVE_COMPLETED ) : MOVE_FILE: // my_file is the name of the archive file : FileMove( "C:\\PNCLB\\filename.txt", my_file ) : goto MOVE_COMPLETED : MOVE_COMPLETED: // establish RAS connection : RASDial( "PNC", "user", "", connection ) : FTPGetFile "100...", "user", "password", : "file", "c:\\PNCLB\\filename.txt" : // terminate RAS connection : RASHangUp( connection )
|