Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Windows Services
Message
From
22/12/2008 09:29:14
 
 
To
22/12/2008 09:20:07
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01369076
Message ID:
01369110
Views:
9
Instead of RUN you should use Shellexecute
DECLARE INTEGER ShellExecute IN shell32; 
INTEGER hwnd,; 
STRING lpOperation,; 
STRING lpFile,; 
STRING lpParameters,; 
STRING lpDirectory,; 
INTEGER nShowCmd

=ShellExecute("YourProgramme.exe")
>Thanks!
>If I decide for the command NET how can I avoid the
>annoying black DOS command window that popups
>when using command RUN?
>The switch /n in the RUN command solves the problem if
>what you are running is a windows application. Of course
>if it's a DOS based application, like NET, it sends messages
>to the DOS console and that keeps the black window open.
>
>>See thread#586930
>>
>>>Hi.
>>>I need to manage (start/stop/etc) some windows services in my application.
>>>My questions:
>>>1. How can I programatically access windows services?
>>>2. How can I "say" a service to Start, Stop, Pause, Resume or Restart?
>>>
>>>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform