Bat + C#

Résolu
hoodlum Messages postés 57 Date d'inscription lundi 16 mai 2005 Statut Membre Dernière intervention 24 septembre 2010 - 24 déc. 2007 à 14:23
TheSaib Messages postés 2367 Date d'inscription mardi 17 avril 2001 Statut Membre Dernière intervention 26 décembre 2007 - 24 déc. 2007 à 19:06
Bonjour a tous,

J'aimerai savoir si quelqu'un pourrai me dire  comment lancer des commande C# a partir d'un bat.?

Merci

6 réponses

sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 37
24 déc. 2007 à 14:45
PowerShell est un shell développer par Microsoft pour les admins systèmes...

Pour plus d'infos, tu peux regarder ce post sur le blog de Coq : http://blogs.developpeur.org/coq/archive/2007/06/03/powershell-quick-reference-et-chm.aspx

Sébastien FERRAND (blog)
Consultant Indépendant
[Microsoft Visual C# MVP]
3
sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 37
24 déc. 2007 à 14:30
des commandes C# ? euh... genre : System.Diagnostics.Debug.Console.Write("Toto") ?

où lancer un programme C# ?

Sébastien FERRAND (blog)
Consultant Indépendant
[Microsoft Visual C# MVP]
0
hoodlum Messages postés 57 Date d'inscription lundi 16 mai 2005 Statut Membre Dernière intervention 24 septembre 2010
24 déc. 2007 à 14:32
Oui effectivement des commandes C# tel System.Diagnostics.Debug.Console.Write("Toto")  ou encore  SendKeys.SendWait("^s"); ...
0
sebmafate Messages postés 4936 Date d'inscription lundi 17 février 2003 Statut Membre Dernière intervention 14 février 2014 37
24 déc. 2007 à 14:34
ce n'est pas possible dans un fichier .bat... par contre, tu peux utiliser PowerShell : http://www.powershell-scripting.com/

Sébastien FERRAND (blog)
Consultant Indépendant
[Microsoft Visual C# MVP]
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
hoodlum Messages postés 57 Date d'inscription lundi 16 mai 2005 Statut Membre Dernière intervention 24 septembre 2010
24 déc. 2007 à 14:41
Ok merci sébastien.
Mais saurai tu où je pourrai trouver un tutorial de powershell'et aussi aussi exist-il  un soft gratuit pour developper des scripts en power shell?
0
TheSaib Messages postés 2367 Date d'inscription mardi 17 avril 2001 Statut Membre Dernière intervention 26 décembre 2007 23
24 déc. 2007 à 19:06
C'est aussi possible en VBscript grâce au CCW (COM Command Wrapper)

http://msdn2.microsoft.com/fr-fr/library/f07c8z1c(VS.80).aspx

::|The S@ib|::
MVP C#.NET
0
Rejoignez-nous