Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Windows Services
Message
De
22/12/2008 09:29:14
 
 
À
22/12/2008 09:20:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01369076
Message ID:
01369110
Vues:
8
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform