×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    16

    How to copy ini files from shareddata?

    Hello all symbian gurus!

    Is it possible to copy all ini files from system shareddata folder? It seems that it's not possible to copy ini files from system shareddata folder witch are in use. I use CBaBackUpSessionWrapper in my application. I set my application to system application.

    Here is some code below.

    //*****************
    ...
    if( !IsActive() )
    {
    iState = ERun;
    iBackupsession->CloseAll(ETakeLock,iStatus);
    SetActive();
    }
    ...
    Reading and copying files...
    ...

    iBackupsession->RestartAll();

    //*****************

    Code works but I'm not able to copy ini files witch are in use.
    Does anybody know how can I copy all ini files?

    Thanks for your answers!

    -vemaka
    Last edited by vemaka; 2005-02-22 at 06:50.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Location
    Turkey & Finland
    Posts
    42
    Hi,
    You can use CFileMan::Copy() Consult SDK help file for details. I copied whole z drive with this command so there shouldn't be any problem with ini files.

    --------------------------------------------------------------------------------
    CaNeR

  3. #3
    Registered User
    Join Date
    Feb 2005
    Location
    Turkey & Finland
    Posts
    42
    Hello,
    Sorry, but I realised that it doesn't copy all files.

    You should use RFs::ReadFileSection function for this purpose.

    --------------------------------------------------------------------------------
    CaNeR

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    16
    Thank you for your answers LAS__VEGAS!

    I have to try to use that RFs::ReadFileSection . Hope it help .

    -vemaka

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    16
    Problem solved !

    If you want to copy files from system shareddata folder, application must set to system application. Then copy files from shareddata.

    // to ConstructL
    CEikonEnv::Static()->SetSystem(ETrue);

    -vemaka

Posting Permissions

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