On Tue, 4 Dec 2001 09:45:23 -0800 (PST), Bernie Corrigan wrote:
>The way I handle this problem is to run R:Base from a bat/cmd file that >sets the path for the window. Bernie, Me, too. I have posted the following several times, a method that is pretty much foolproof for avoiding PATH problems with many versions of R:Base for DOS, across many operating systems, from OS/2 to 16 bit Win, to W2K, and probably XP. The path R:Base needs is always available when R:Base for DOS is running, and never clutters the path when R:Base for DOS is not running. Bill 1. Create a BATCH file that will start R:Base for DOS. The BATCH file should look like the model below, with drives and directories changed to match your system. If you are running in NT or Win 2000, name the BATCH file with the extension CMD. If you are running in Win 95 or Win 98, name the BATCH file with the extension BAT If all users have the same path name to their local copy of the R:Base executables, you can put the batch file on a public network drive. Where I have F:\RBSERVER, you should have the network drive and directory on which your SERVER.SY5, SERVER6.RBG or other R:Base network access control file. (Depending on your version of R:Base, it may have either name. If you have R:Base 6.5 or later, you can totally ignore this requirement.) Where I have C:\RBTI\RB40DOS, you should have the local drive and directory on which R:Base for DOS is installed. It should also be the directory in which this user's RBASE.CFG file resides. -------- RBxxDOS.BAT -------------- SET SAVPATH=%PATH% SET PATH=F:\RBSERVER;C:\RBTI\RBxxDOS;%PATH% REM -- Now change to the drive and directory containing REM -- your R:Base database and application files F: CD \RBDATA\MYAPP REM -- Start R:Base c:\RBTI\RBxxDOS\RBASE.EXE -c -r -k1 EXIT ------------------------ 2. Create a new shortcut, pointing to your new batch file. 3. Rename the shortcut to your application name 4 Right-click the icon and choose Properties. 5. On the PROGRAM tab, close on exit should be checked. 6. Under Advanced, Prevent MS-DOS from detecting windows should be checked. 7. Under "change icon", navigate to c:\rbti\rbxxdos or whatever, and choose a more appropriate icon. 8. On the MEMORY tab, be sure conventional memory is AUTO, environment is 2000 or higher, expanded is disabled or zero, extended is eight megabytes or more, and protected memory amount is the same as extended. 9. on the MISC tab, be sure "always suspend" is Un-checked. If all of your workstations are set up with the same directory names and drive mappings, you can copy the shortcut to floppy or a network folder in order to drag it easily to other desktops. =======================
