Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute()
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00092846
Message ID:
00092988
Views:
35
>George,
>
>I can get it to spawn a DOS window, by just using command.com as the DocApp: ?shellexecute( h, "open", "command.com", "", "c:\", 1 )
>
>I can get it to run a bat file just using the .bat as the DocApp: ?shellexecute( h, "open", "c:\test1.bat", "", "c:\", 1 )
>
>I can get it to run xcopy: ?shellexecute( h, "open", "xcopy", "autoexec.bat autoexec.xyz", "c:\", 1 )
>
>I can't get it to run one of the DOS internal commands though.... that was until I went spelunking in command.com with the old PCMag DR utility...
>
>This works great lasts a long time: ?shellexecute( h, "open", "command.com", "/c copy autoexec.bat autoexec.xyz", "c:\", 1 ) The window flashes up then goes away.
>
>If you use a /k switch command.com will not terminate when it's done.
>
>Ain't DOS grand?
>
>This is all tested under Win95.

(Bows deeply)My hat's off to you, David. So I'm not the only one who keeps old computer magazines. :-) My results were just about the same in the first couple of cases, but I never would have thought about the command line switch.

While you're here, take a look at Timothy's post in this section. Maybe something will jump out at you that I've missed. I'm working on it now.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform