Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_APPRUN
Message
From
08/09/1999 22:20:05
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00262259
Message ID:
00262713
Views:
14
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform