![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've recently transferred to Windows XP Pro on a new system and wish to run FoxPro v2 (DOS). However, there's a problem with running 'Foxapp' that converts screen layouts data entry applications, where I now get a 'C:\mydir\db is an invalid path' error. Filenames conform to DOS 8.3 style and this error was not evident under Win98SE. The WinXP start-up is emulating Windows 98, with the command line: C:\FOXPRO2\FOXPRO.EXE -x -cC:\FOXPRO2\Config.FP and working directory: C:\mydir\db The details for the two main configuration files are below. Any suggestions would be much appreciated. Regards, Dave. C:\WINDOWS\SYSTEM32\CONFIG.NT contents (extract): dos=high, umb device=%SystemRoot%\system32\himem.sys FILES=99 BUFFERS=35 device=%SystemRoot%\system32\drivers\hpscan16.sys C:\Foxpro2\CONFIG.FP contents: BRSTATUS=ON CARRY=ON CENTURY=ON COLOR SET=DP COMPATIBLE=OFF CURRENCY="o" DATE=BRITISH EMS64=OFF HEADING=OFF MACKEY=OFF NOTIFY=OFF RESOURCE=C:\FOXPRO2\FOXUSER SCOREBOARD=ON STATUS=ON |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
This appears to be the code snippet within Foxapp that generates the "C:\mydir\db is an invalid path." message FUNCTION _18p0xdovw && generate VALID [from Screen APPSCX/APPSCX.SPR] CASE !FILE(addbs(justpath(m.appfile))+'NUL') WAIT WINDOW justpath(m.appfile)+" is an invalid path." NOWAIT valid_name = .F. This step is simply determining the name and directory of the output ..APP file: and 'C:\mydir\db' under Win98 did not cause this error message, but WinXP does. Regards, Dave. Undocumented Functions In fpath.plb http://www.hop.man.ac.uk/staff/mpitc...pro/fpath.html addbs(expC) Description: Add Back Slash - Appends the back slash character to the string in expC if it does not already have one. justdrive(expC) Description: Just Drive - Returns the drive in the format d: from a full pathed string. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Rick, Many thanks, again, ... "IF you change the check to: CASE adir(xx, addbs(justpath(m.appfile)),"D") < 1 it should work." A slight snag is that the problematic/amended line is in Foxapp's APPSCX.SPR ("generated by GENSCRN"), and despite some rebuilding I cannot get it to appear in the final Foxapp.APP If anyone can recall how the process works and knows the answer, then I'd be delighted to hear from them ! Regards, Dave. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
David, how often do you rebuild the app ? If the answer is "never", you might save some hunting in the screen generator sources or "power tools files" by just patching the app. |
![]() |
| Thread Tools | |
| Display Modes | |
| |