[scilab-Users] How to launch a batch file under windows
Carrico, Paul
paul.carrico at esterline.com
Fri Jun 25 13:52:30 CEST 2010
Yes I think so ... Here'is a part of the code :
unix('cd JOB1');
[rep,stat,err]=unix_g("go1.cmd");
// permet de pointer sur le type d'erreur s'il y en a
if (stat~=0) then
printf('rep = '); disp(rep);
printf('err = '); disp(err);
end
unix('cd ..');
-----------------------------------------------------------------
PAUL CARRICO
Design Engineer / Material expert
Temperature Department
AUXITROL
SENSORS Group
ESTERLINE Corporation
5, allée Charles Pathé
18941 BOURGES cedex 9
FRANCE
Phone : +33 (0) 2 48 66 78 50
Fax : +33 (0) 2 48 66 78 55
Email paul.carrico at esterline.com
-----------------------------------------------------------------
P
Please consider the environment before printing this e-mail
-----Message d'origine-----
De : Allan CORNET [mailto:allan.cornet at scilab.org]
Envoyé : vendredi 25 juin 2010 13:50
À : users at lists.scilab.org
Objet : RE: [scilab-Users] How to launch a batch file under windows
Hi,
Are you sure that .bat is in your current directory (add full path) ?
A example tested with 5.1.1:
mybatchfile = TMPDIR + '\mybatch.bat';
mputl('echo hello from batch', mybatchfile)
[a,b,c] = unix_g(mybatchfile)
___________________________________________
scilab-5.1.1
Consortium Scilab (DIGITEO)
Copyright (c) 1989-2009 (INRIA)
Copyright (c) 1989-2007 (ENPC)
___________________________________________
Startup execution:
loading initial environment
-->help mputl
-->mybatchfile = TMPDIR + '\mybatch.bat';
-->mputl('echo hello from batch', mybatchfile)
ans =
T
-->[a,b,c] = unix_g(mybatchfile)
c =
b =
0.
a =
! !
! !
!C:\Users\ME\Desktop>echo hello from batch !
! !
!hello from batch !
Allan
-----Message d'origine-----
De : paul.carrico at free.fr [mailto:paul.carrico at free.fr]
Envoyé : vendredi 25 juin 2010 13:35
À : users at lists.scilab.org
Objet : Re: [scilab-Users] How to launch a batch file under windows
Thanks
However because of the usefull text editor I'm still under Scilab 5.1.1 ... and such instruction seems not to work (see attached screenshot).
I think i've to focuss and the second step I'm thining to i.e to lauch directly the fea code from scilab
Regards
Paul
----- Mail Original -----
De: "Allan CORNET" <allan.cornet at scilab.org>
À: users at lists.scilab.org
Envoyé: Vendredi 25 Juin 2010 13h22:11 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: RE: [scilab-Users] How to launch a batch file under windows
Hi,
See example in : help unix_g
Or : unix_g("mybatch.bat")
Best regards
Allan CORNET
-----Message d'origine-----
De : paul.carrico at free.fr [mailto:paul.carrico at free.fr] Envoyé : vendredi 25 juin 2010 12:28 À : users at lists.scilab.org Objet : [scilab-Users] How to launch a batch file under windows
Hi all
Ok for launching a exec file ... however how can i proceed to launch a batch one i.e a .cmd ?
Indeed either
[rep,stat,err]=unix_g(go.cmd);
or
[rep,stat,err]=unix_g(go);
doesn't work
Regards
PC
--------------------------------------------------------------------------------
Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.
More information about the users
mailing list