Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API_APPRUN
Message
De
08/09/1999 22:20:05
 
 
À
08/09/1999 14:31:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00262259
Message ID:
00262713
Vues:
13
>>Hi all,
>>
>>I am using the above developed by Mr. Ed Rauh. I am facing some problem using this in certain PCs and hope someone can enlighten me where I can resolve the problem. When I execute below :
>>
>>IF ddosrun("DIR /p", "MAX")
>>
>>ELSE
>>
>>ENDIF
>>
>>The message "The process didn't dtart up. Please try again...." is displayed no matter how many times I tried. I have traced down the failure to the below statement :
>>
>>lResult = CrPr( 0, cCommandLine, 0, 0, 0, 0, 0, uFromDir, ;
>> StartUpInfo, @cProcessInfo)
>>where the lResult is not 1...
>>
>>Please help. Thanks in advance.
>
>DIR is an internal command under Win9x, and can't be launched directly in this fashion. You might try launching a COMMAND.COM instance explicitly, something like:
>
>COMMAND.COM /C DIR /P
>
>to get this to run (this is necessary under Win9x at least, where the command processor isn't launched until the decision about the type of executable is made, and since there's no DIR.EXE, DIR.COM or DIR.BAT, it fails.)

Thank you, thank you and thank you... You are a life-saver!!!

Regards.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform