Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FPD25 Urgent/HELP IF FILE() code broken
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00589278
Message ID:
00589749
Vues:
25
>Actually I tried both 486 and a MMX and both failed. Later I put the directory in the Path and used just the file name and it did not work.
>
>Just want to confirm, this I am running from an EXE. Isnt the EXE supposed to have the reference of the SPR file in it so that I can be run straight, also I believe the FILE() command works for files inside the EXE.

The .EXE should contain the SPR entirely; you should absolutely not specify a path unless you've excluded it from the project.

>
>>>The IF FILE() works on a PIII 550 W2K Machine and fails
>>>on a 486 12MB RAM W98 machine, MMX machine.
>>
>>First, this is an inconsistent description of hardware. The PIII/550 is fine, but there is no such thing as a 486 MMX processor - the MMX designation was added to the Pentium processor to indicate the presense of an extended processor set on the Pentium chip, so there simply ain't no such thing.
>>
>>Second, a Win98 box with 12MB is an awfully thin configuration - I'd be surprised to see it run a couple of sessions of Notepad happily without hitting the swap file. Before spending any more time on this antique whatever-it-is, I'd suggest a minimum memory configuration of 32MB with Win98.
>>
>>>I tried relative path
>>>as specified above as well as IF FILE(m.zscrname + ".spr"), IF FILE("..\sprs\"+ m.zscrname + ".spr"), with without UPPER() for the file string
>>>
>>>but none of them work on the W98 machine
>>
>>Pathing behaves differently in the two operating systems; rather than using a relative path, I'd suggest resolving it to a fully-specified path using:
>>
>>
FULLPATH(CURDIR()+'..\<i>blah blah woof woof'</i>)
so that there is no ambiguity as to where the file is expected to reside.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform