List the Companies in sage 50 and its location via SDK?

Hi to all ,

Is it possible to list what are the companies available in sage 50 software using SDK. Also company's database's .SAI location get via SDK?

  • 0

    Hi,

    Do you mean, get a list of recent companies that have been opened in the software, and the full pathname?

    Or do you mean get a list of companies currently open on the workstation?   On the server?

    or do you mean enumerate all the company files available on all drives, and their locations, or something else?

  • 0 in reply to RandyW

    Thanks for your reply,

    I want to get ALL companies name and its path like ..public documents\simply accounting\...\universal.sai

    is it possible with SDK or any other way?

    Thanks in advance.

  • 0 in reply to Ricky_W

    In the olden days, I would have suggested running:

    DIR c:\*.SAI /s >SAIFILES.TXT

    from a command prompt.  (assuming you have write access to the current directory and that you only have one hard drive.)

    Or make a batch file like:

    DIR c:\*.SAI /s >SAIFILES.TXT

    DIR F:\*.SAI /s >>SAIFILES.TXT

    DIR S:\*.SAI /s >>SAIFILES.TXT

    Sage creates an ODBC.INI entry on the workstation for each company that you open on it.  The filenames are stored in the Registry.