Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
495 connectés 

  FORUM HardWare.fr
  Windows & Software
  Logiciels

  [CMD] Couper un programme automatiquement

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[CMD] Couper un programme automatiquement

n°1577850
LeGrandLou​p
Posté le 23-05-2004 à 22:32:48  profilanswer
 

Hello à tous
------------
 
J'aimerais pouvoir fermer un programme à l'aide d'une commande .BAT via l'invite de commande.
 
 
Je m'explique j'ais mon collègue qui utlise le meme login que moi pour un logiciel (oracle discoverer) lorsque j'ai énormément de boulot j'oublie souvent de le couper (je suis asser tete en l'air pour certaine chôse ) donc j'aimerais savoir si c'est possible via l'invite de commande de couper ce programme après 10 minutes d'inactivité par exemple...
 
ainsi mon collègue ne serais plus embété pour utiliser ma clée lorsque je suis occupé a autre chôse.
 
pourquoi un .BAT ? parce que je ne peut instaler aucun EXE(si vous avez une autre idée....) et je n'ais pas envie de melé mon administrateur réseau a cela ...


Message édité par LeGrandLoup le 24-05-2004 à 14:56:37
mood
Publicité
Posté le 23-05-2004 à 22:32:48  profilanswer
 

n°1577895
weebbeep
grammaire de tourneur fraiseur
Posté le 23-05-2004 à 23:28:40  profilanswer
 

je suppose que tu parles d'un .bat en fait ?

n°1577979
ArIMoKX'Z_​fr
Jan ULLRICH's Fan
Posté le 24-05-2004 à 05:21:31  profilanswer
 

Oui il parle d'un .bat.

n°1578004
Requin
Posté le 24-05-2004 à 06:23:43  profilanswer
 

Sans être administrateur tu ne pourras pas...
 
En gros la solution consisterait à :
1) Télécharger un logiciel permettant de tuer un processus en onction de son nom : pskill
2) Créer une tâche planifiée basée sur "IDLE" qui lance pskill.
 
La meilleure solution étant à mon avis que vous possédiez chacun votre login.

n°1578598
LeGrandLou​p
Posté le 24-05-2004 à 14:51:35  profilanswer
 

Requin a écrit :

Sans être administrateur tu ne pourras pas...
 
En gros la solution consisterait à :
1) Télécharger un logiciel permettant de tuer un processus en onction de son nom : pskill
2) Créer une tâche planifiée basée sur "IDLE" qui lance pskill.
 
La meilleure solution étant à mon avis que vous possédiez chacun votre login.


ok a la limite  je peux encore m'arranger pour mettre pskill sur mon pc de bureau au boulot mais comment cela fonctionne-t-il ?  
J'ai extrait le .exe je le lance une petite fenetre s'ouvre mais elle ce coupe directement pourrais-tu m'expliquer ?  
encore merci de ton aide.

n°1578611
Requin
Posté le 24-05-2004 à 15:06:39  profilanswer
 

démarrer -> cmd -> bouton "ok" -> saisir "pskill -?" (sans les guillemets)
 
Ainsi tu verras l'aide de la commande :

Citation :

Usage
Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.  
 
usage: pskill [-?] [\\computer [-u username] [-p password]] <process name | process id>  
-? Displays the supported options.  
\\computer Specifies the computer on which the process you want to terminate is executing. The remote computer must be accessible via the NT network neighborhood.  
-u username If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsKill will prompt you for the password without echoing your input to the display.  
-p password This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password.  
process id Specifies the process ID of the process you want to kill.  
process name Specifies the process name of the process


Message édité par Requin le 24-05-2004 à 15:07:47
n°1578644
LeGrandLou​p
Posté le 24-05-2004 à 15:40:19  profilanswer
 

Requin a écrit :

démarrer -> cmd -> bouton "ok" -> saisir "pskill -?" (sans les guillemets)
 
Ainsi tu verras l'aide de la commande :

Citation :

Usage
Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.  
 
usage: pskill [-?] [\\computer [-u username] [-p password]] <process name | process id>  
-? Displays the supported options.  
\\computer Specifies the computer on which the process you want to terminate is executing. The remote computer must be accessible via the NT network neighborhood.  
-u username If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsKill will prompt you for the password without echoing your input to the display.  
-p password This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password.  
process id Specifies the process ID of the process you want to kill.  
process name Specifies the process name of the process




excuse moi cela marche maintenant mais pas moyen de couper une aplication pourrais-tu m'aider ?  
 

n°1580445
LeGrandLou​p
Posté le 25-05-2004 à 21:55:09  profilanswer
 

Requin a écrit :

démarrer -> cmd -> bouton "ok" -> saisir "pskill -?" (sans les guillemets)
 
Ainsi tu verras l'aide de la commande :

Citation :

Usage
Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.  
 
usage: pskill [-?] [\\computer [-u username] [-p password]] <process name | process id>  
-? Displays the supported options.  
\\computer Specifies the computer on which the process you want to terminate is executing. The remote computer must be accessible via the NT network neighborhood.  
-u username If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsKill will prompt you for the password without echoing your input to the display.  
-p password This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password.  
process id Specifies the process ID of the process you want to kill.  
process name Specifies the process name of the process




ou alors y-a-t il moyen que mon collègue coupe MON application depuis SON pc via un Raccourcis ?


Message édité par LeGrandLoup le 25-05-2004 à 21:55:49
n°1580618
Requin
Posté le 26-05-2004 à 07:13:15  profilanswer
 

Seulement si il possède les droits administrateurs (local est suffisant)... sinon non !

n°1582176
MetastaSe
Tu meurs...TUMEUR!
Posté le 27-05-2004 à 12:43:05  profilanswer
 

je croi qu'il y a  moyen mais je ne sais plus comment procèder :/


---------------
ΔLA CIGARETTE TUE LA VERITE SANS FILTREΔ

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software
  Logiciels

  [CMD] Couper un programme automatiquement

 

Sujets relatifs
prob norton controle de programme elevé !!fermeture de programme sur internet explorer
Programme inconnu qui démarre avec windows : ljlcnp.execache un programme!
Logiciel pour compresser et sauvegarder automatiquement des données?lien en gris et programme qui ne s ouvre pas
Ajouter une machine dans un domaine NT4 automatiquement...programme de mise enveille
[Win98SE] Programme invisible qui tourne...[DOS] programme pour supporter les nom longs?
Plus de sujets relatifs à : [CMD] Couper un programme automatiquement


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR