Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00722499
Message ID:
00723955
Vues:
10
Consider examining the FOXRUN.PIF for enogh memory allocation. That's automatically used for DOS call if you didn't set a PIF up



>Hi Jon,
>
>I had already finished my batchfile when I opened your post. Here's what I came up with:
>
>
>@ echo off
>
>rem sf_wrapper.bat
>rem global wrapper batch file used to
>rem set the default DOS directory
>rem needed by the file referenced in argument 2
>rem
>rem VFP Example Code:
>rem !command /c "&MyWrapper" c:\rbnscope c:\rbnscope\rdxm_s.bat
>rem
>rem Note: Argument 3 is used to pass an argument to the
>rem executable or batch file referenced in argument 2
>rem
>rem Note: If not found, this file will automatically be created
>rem in the StanFoxPro home directory.
>rem
>
>cd %1
>
>%2 %3
>
>
>
>Unfortunately it doesn't work as hoped from VFP. It works from DOS and the Run menu just fine though!!! :)
>
>Hugh
>
>
>>>Obviously I'm looking for a cheat here. I don't want to have to write a couple of dozen batch files (if I can help it).
>>
>>Hugh,
>>
>>Perhaps at runtime you can use the low-level I/O functions create a wrapper batch file. In the first line, write out a CD followed by your directory and then the second line can be the call to launch the Dos app. Then after closing the handle to the batch file, launch it from VFP.
>>
>>Just a thought.
>>
>>Laterness,
>>Jon
Edgar L. Bolton, B.S. B.B.A.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform