Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spawning DOS batch job from VFP under Windows 2000
Message
De
21/01/2003 12:10:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00743619
Message ID:
00743805
Vues:
10
This message has been marked as the solution to the initial question of the thread.
So it will work on both OS versions:
LOCAL lccmd
lccmd=GETENV('comspec')
IF 'cmd.exe' $ lcmd
    !CMD /C batchfile.bat
ELSE
    !COMMAND /C batchfile.bat
ENDIF
>Having a problem as a result of the change from Windows 95/98 to Windows 2000. We have an FoxPro app that creates a pair of batch files. The second won't function correctly when executed by FoxPro or VFP, but will when executed directly from Windows2k.
>
>I've tested it to the point putting just the batch execution statement
>
>! C:\MCC\wf6000 && Second batch file executed.
>
>into a .prg file and running it. Still doesnt' work. Double clicking on the batch file from the Windows Explorer produces a perfect run.
>
>Any suggestions on resolving this?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform