gregomtl
Messages postés6Date d'inscriptionlundi 29 mars 2004StatutMembreDernière intervention 4 mai 2004
-
24 avril 2004 à 20:27
mckmonster
Messages postés10Date d'inscriptionvendredi 2 mai 2003StatutMembreDernière intervention 6 décembre 2007
-
25 avril 2005 à 09:26
Salut comment je pourrai passer cette commande pour qu'elle fonction et soit bien execute ?
Ex.: en cliquant sur un bonton, executer le programme "cmd.exe" et demander d'executer la commande : dir *.exe
Merci de votre aide a tous !
Greg
PS: Mon code est celui-ci dessous.
private void button1_Click(object sender, System.EventArgs e){
/*
linkResult sa variable est :
xsibatch -r -scene "C:\Softimage\XSI_3.5.1Data\XSI_SAMPLES\Scenes\dog.scn" -startframe 15 -endframe 16
*/
string fileNameabout = "files2render.txt";
TextReader reader;
reader = new StreamReader(fileNameabout);
string linkResult = reader.ReadToEnd();
reader.Close();
MessageBox.Show(""+linkResult,"test de variable lut");
ProcessStartInfo startinfo = new ProcessStartInfo(@"C:\Softimage\XSI_3.5.1Application\bin\SIShell.bat",""+linkResult);
startinfo.WindowStyle = ProcessWindowStyle.Minimized;
Process proc = Process.Start(startinfo);
}
gregomtl
Messages postés6Date d'inscriptionlundi 29 mars 2004StatutMembreDernière intervention 4 mai 2004 26 avril 2004 à 14:52
le programme execute bien le fichier
C:\Softimage\XSI_3.5.1Application\bin\SIShell.bat , mais n'execute pas la commande suivante
"C:\Softimage\XSI_3.5.1Data\XSI_SAMPLES\Scenes\dog.scn" -startframe 15 -endframe 16 as tu une solution pour qu'il puisse l'executer ?