Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command
Message
From
18/05/2004 11:13:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/05/2004 10:51:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00904937
Message ID:
00904950
Views:
29
>Hello,
>In my application I am running a .bat file with this command:
>
>Run C:\vfp\ka\Runtime\clearwork.bat
>
>
>Is there a way to specify this to run minimized so the black screen does not pop up when the .bat file is run?
>
>Thanks!
>
>MAC

Use ShellExecute instead.
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'Open',;
  'C:\vfp\ka\Runtime\clearwork.bat','','C:\vfp\ka\Runtime',0)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform