Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_APPRUN
Message
From
08/09/1999 14:31:13
 
 
To
07/09/1999 23:40:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00262259
Message ID:
00262520
Views:
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.)
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform