[Wapt] Lancer une commande powershell v.1 ou un cmd avec wapt

David Matta sysadmin at lfib.ac.th
Mar 7 Juin 10:56:16 CEST 2022


Merci beaucoup, Florent, je vais tester cette option.



David.



*De :* Florent Lagoda <florent.lagoda at univ-rennes2.fr>
*Envoyé :* mardi 7 juin 2022 15:54
*À :* wapt at lists.wapt.fr; sysadmin at lfib.ac.th
*Objet :* Re: [Wapt] Lancer une commande powershell v.1 ou un cmd avec wapt



Bonjour David,

Ici nous faisons comme ceci sans rentrer dans le venv, pour ajouter des
modules silencieusement :



run_notfatal(r'"C:\Program Files\Anaconda3\Scripts\conda.exe" install
-y leModule')









Le 07/06/2022 à 04:57, David Matta via WAPT a écrit :

Bonjour,



J’ai besoin de lancer une commande powershell v.1, idéalement via un paquet
wapt, voici ma commande :

*%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy
ByPass -NoExit -Command "& 'C:\Program
Files\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Program
Files\Anaconda3' ; pip install folium ; pip install pyroutelib3"*



J’ai mis cette commande dans un cmd mais je ne trouve pas comment le lancer
et silencieusement.



Merci par avance de vos idées.



Cordialement.





*Lycée Français International*

*Bangkok, THAILAND*

*David MATTA*
Responsable des SI / IT Manager



498, Soi Ramkhamhaeng (Thep Leela 1)

Wangthonglang - 10310 - Bangkok
Tél :     66 (0) 29 34 80 08
Fax :    66 (0) 29 34 66 70
sysadmin at lfib.ac.th
www.lfib.ac.th | LinkedIn
<https://www.linkedin.com/company/3861878?trk=tyah&trkInfo=tarId%3A1413177122685%2Ctas%3Alycee%20francais%20international%20de%20bangkok%2Cidx%3A1-1-1>
| Facebook <https://www.facebook.com/LFIBofficial> | Twitter
<https://twitter.com/LFIBinfo>

<http://www.lfib.ac.th/> <http://www.aefe.fr/>

<https://www.lfib.ac.th/sinscrire/?lang=en>

*This communication (including any files transmitted with it) is intended
solely for the person or entity to whom it is addressed, and may contain
confidential or privileged information. The disclosure, distribution or
copying of this message is strictly forbidden. Should you have received
this communication in error, kindly contact the sender promptly, destroy
any copies and delete this message from your computer system.*





_______________________________________________

WAPT mailing list

WAPT at lists.wapt.fr

http://lists.wapt.fr/listinfo/wapt
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.wapt.fr/pipermail/wapt/attachments/20220607/400f39ad/attachment.htm>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: image001.jpg
Type: image/jpeg
Taille: 1618 octets
Desc: non disponible
URL: <http://lists.wapt.fr/pipermail/wapt/attachments/20220607/400f39ad/attachment.jpg>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: image002.png
Type: image/png
Taille: 17309 octets
Desc: non disponible
URL: <http://lists.wapt.fr/pipermail/wapt/attachments/20220607/400f39ad/attachment.png>
-------------- section suivante --------------
Une pièce jointe autre que texte a été nettoyée...
Nom: image003.png
Type: image/png
Taille: 27735 octets
Desc: non disponible
URL: <http://lists.wapt.fr/pipermail/wapt/attachments/20220607/400f39ad/attachment-0001.png>


Plus d'informations sur la liste de diffusion WAPT