Baanboard.com

Go Back   Baanboard.com > Blogs > ram_baan's blog

User login

Frontpage Sponsor

Main

Poll
Would you like to see a separate forum on Baanboard for the ION product?
No
14%
Yes
86%
Total votes: 79

Baanboard at LinkedIn


Reference Content

 
Search windows files in Baan using unix commands
By ram_baan at 16 Jul 2009 - 12:56

Hi All,

There are few files residing in a specific folder of a windows machine (PC).  Our intention is to get only those filenames starting with "dm" from that location using BaaN script (BaaN 5). Appreciate if any of you could tell us the detailed steps to achieve this

Thanks

0
No votes yet

by günther on July 16, 2009 - 2:12pm
First of all, your setting is "OS:WindowsNT" - why that? Where is your Baan running (not the baan client)?

1. My Baan IV runs on unix, but we're using the bw client.
2. The dll ottdllw contains all that's necessary.

My approach is:
Step 1: run a batch file on your windows pc eg. with app_start().
Step 2: that batch file could do e.g cd to that specific directory and then a "dir dm*" > a file.
Step 3: copy that file to the unix server using client2server().
Step 4: read that file using seq.open(), seq.gets() and seq.close().

Günther


All times are GMT +2. The time now is 17:47.


©2001-2013 - Baanboard.com - Baanforums.com