Rinkashiki
16th January 2015, 02:55
Hello.
I so understood that search of the file which name is completely not known, in a certain folder at a local disk in BAAN does not work. I want to load into the temporary table or the massif, a name of all files which are in a certain folder on a local disk. Somebody knows as it it is possible to realize?
Thanks in advance.

bhushanchanda
16th January 2015, 11:17
Hi,

If the client OS is windows, and the file types are text files you can do this:-

dir *.txt /a-d /b

In this way, you can also store the file names in an output file like:-

dir *.txt /a-d /b >C:\Test\output.txt

i.e. use app_start() or start.application.local() to run the above command.

Now, you can use seq.* function to read and process the files.

Rinkashiki
19th January 2015, 02:45
It should be made automatically, when pressing the button in a session. That is the user does not choose a way. The way is already known. It for example, D:\BAAN\245. 245 it is the planner by the production order. Folders on the planner can be a little and files in these folders can be a little.

bhushanchanda
19th January 2015, 04:43
Hi,

The piece of code I gave will work for a single folder. And there is no need for any manual intervention. In the same way you will need to use dir command as well to check the number of subfolders present. I am assuming you are familiar with Baan programming and are aware of commands like app_start(), client2server, seq.* functions etc.

Also check this Thread (http://www.baanboard.com/baanboard/showthread.php?t=43237&highlight=read+local+directory)

Rinkashiki
20th January 2015, 02:12
thanks. I will try to make so.