[scilab-Users] link .sce file with batch mode

Paul CARRICO paul.carrico at free.fr
Thu Jun 17 18:34:09 CEST 2010


Thanks Anna,

Unfortunately (from the help files) :

"get_absolute_file_path — Given an absolute pathname of a file opened in scilab" => my file is not opened since I want to create it

"sciargs - Cette fonction renvoie un vecteur de chaînes de caractères contenant les arguments de la commande de lancement de Scilab. Le premier terme du vecteur args contient le nom complet (avec le chemin) du fichier exécutable de Scilab." -> I don't think it's applicable here !

Paul


-----Message d'origine-----
De : Allan CORNET [mailto:allan.cornet at scilab.org] 
Envoyé : jeudi 17 juin 2010 16:59
À : users at lists.scilab.org
Objet : RE: [scilab-Users] link .sce file with batch mode

Hi,

See: help get_absolute_file_path

And also :
help sciargs

Best regards

Allan


-----Message d'origine-----
De : paul.carrico at free.fr [mailto:paul.carrico at free.fr] 
Envoyé : jeudi 17 juin 2010 16:46
À : users at lists.scilab.org
Objet : [scilab-Users] link .sce file with batch mode

Hi All,

I created a batch file (under windows) that launch my .sce file ...

In this .sce file I would like to specify the working directory in "batch language" i.e. like "%D%" instead of "C:\...." :

.....
// chemin d'accès
CHEMIN = "%D%";

// ouverture du fichier resultat
RESU= mopen(CHEMIN + "/resu.dat", 'w');
.....



Of course %D% doesn't work .... How can I proceed ?

Is there any tutorial that explains how to include system instructions into Scilab files ?

regards

PC




More information about the users mailing list