Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Jens Simon Strom
Hello, Good solution! I did not realize it because I still use Vers 6.1.0. My work around is the following function as inspired by Samuel Gougeon (see url): function [fullPath, path, name, ext, nameplusext]=pathexplode()

Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Stéphane Mottelet
Hello, Yes this call form (available since Scilab 6.1.1) is the most portable as it does not need to specify a script filename. S. On 22/01/2024 09:42, Stefan Du Rietz wrote: Hello Jens, this line in your function or script returns its file name as you requested:

Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Stefan Du Rietz
Hello Jens, this line in your function or script returns its file name as you requested: [filepath,filename]=get_absolute_file_path(); Best regards Stefan On 2024-01-18 11:42, Jens Simon Strom wrote: Hi, I look for a command which -- as part of a script -- returns a string containing the

Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Hani Andreas Ibrahim
If I understood you correctly try: get_absolute_file_path("test.sce"); Put it in the function or script, e.g.: fn_script = fullfile(get_absolute_file_path("Myscript.sce") + "Myscript.sce") Kind regard, Hani Am 18.01.24 um 11:42 schrieb Jens Simon Strom: Hi, I look for a