in

Data Techniques Forums

Location of faxman4.db

Last post 01-07-2009 4:47 PM by Admin. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-07-2009 10:05 AM

    • rec
    • Top 25 Contributor
    • Joined on 05-10-2001
    • Posts 31

    Location of faxman4.db

    We have just upgraded to faxman v4 and are having trouble working out where it created the faxman4.db file.  The previous version used to create the database folders in the same folder as the faxman EXE, but the new version seems to put it two folders above.


    For example, if our app and all the faxmas files are located in:

     C:\Projects\Sample\Debug

    The faxman4.db file seems to be written to

    C:\Projects

    Is there any way to control where the database is created?  This is really crucial to us and having different behaviour to v3 is causing some head scratching.

    EDIT: As an experiment I added a call to getcwd immediately before calling FaxSchedule and it is the correct folder (i.e.  C:\Projects\Sample\Debug and not C:\Projects).

    Filed under:
  • 01-07-2009 10:23 AM In reply to

    Re: Location of faxman4.db

    Hi,

    The FaxMan4.db file is always created in the same directory as the faxman4.exe that is running. There isnt any way to change that. So it sounds like you have your running instance of faxman4.exe in the \projects dir somehow.

  • 01-07-2009 10:29 AM In reply to

    • rec
    • Top 25 Contributor
    • Joined on 05-10-2001
    • Posts 31

    Re: Location of faxman4.db

    I assure you that my Projects folder doesn't contain the faxman exe.  I only have one copy of the faxman exe and it is definitely in the Debug folder.

    The db is created when I call FaxSubscribe FWIW.  Note that I using a deep path here.  The actual paths are:

     C:\Documents and Settings\Robert Caldecott\My Documents\Visual Studio 2008\Projects\Print Manager 1.10\Debug

    The above folder is where the FaxMan files are located.  The db ends up in:

     C:\Documents and Settings\Robert Caldecott\My Documents\Visual Studio 2008\Projects

    Help!

  • 01-07-2009 10:33 AM In reply to

    • rec
    • Top 25 Contributor
    • Joined on 05-10-2001
    • Posts 31

    Re: Location of faxman4.db

    As an experiment I moved all the files to:

    C:\tmp\fax

    And the faxman4.db file is created in the same folder.

    So the issue is with either the length of the folder or the way the folder is being parsed.

    Any ideas?

  • 01-07-2009 10:42 AM In reply to

    • rec
    • Top 25 Contributor
    • Joined on 05-10-2001
    • Posts 31

    Re: Location of faxman4.db

    The folder name length seems to be the issue - the following folder fails:

    C:\Documents and Settings\Robert Caldecott\My Documents\Visual Studio 2008\Projects\Print Manager Test

    (the db ends up in the next folder up)

    But this works:

    C:\Documents and Settings\Robert Caldecott\My Documents\Visual Studio 2008\Projects\Print Manager

    Perhaps more than 100 chars and it stops working?

    We store files in the AppData folder which could easily be longer than this.  :(

  • 01-07-2009 4:47 PM In reply to

    Re: Location of faxman4.db

    Hi Rob,

    We have also received your email about this and will look into it tommorow morning and let you know what we find.

Page 1 of 1 (6 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.