×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Exclamation [snippets pys60 updating] find db files

    http://www.bigbold.com/snippets/posts/show/1465
    Korakot wants to know what tables are there in each db file.
    The first step is to list all such files.
    Code:
    # Finding all symbians database files
    import os
    
    def print_db(arg, dirname, names):
      for name in names:
        if name.endswith('.db') or name.endswith('.cdb'):
          print dirname + '\\' + name
    
    os.path.walk(('C:\\', print_db, None)
    os.path.walk(('D:\\', print_db, None)
    os.path.walk(('E:\\', print_db, None)
    Don't forget .cdb files (as contact.cdb !)
    Don't forget disk d: and e: !

    Have a nice day !

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Bangkok, Thailand
    Posts
    148

    Re: [snippets pys60 updating] find db files

    Thanks, cyke64 !

Similar Threads

  1. Find a group of files
    By Jeepy in forum Symbian C++
    Replies: 1
    Last Post: 2005-02-26, 11:09
  2. Find ALL files of type X
    By gavin_tranter in forum Symbian C++
    Replies: 3
    Last Post: 2004-10-21, 09:16
  3. Sending several files without using SIS
    By stopin in forum Symbian C++
    Replies: 0
    Last Post: 2003-07-10, 16:32
  4. abld make files missing
    By dalore in forum Symbian C++
    Replies: 0
    Last Post: 2003-06-13, 12:40
  5. How to find out which files belong to app?
    By bagheera in forum Symbian C++
    Replies: 1
    Last Post: 2003-02-10, 15:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •