Discussion Board
How to copy ini files from shareddata?
2005-02-21, 07:45
#1
Registered User
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 .
Registered User
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
Registered User
Hello,
Sorry, but I realised that it doesn't copy all files.
You should use RFs::ReadFileSection function for this purpose.
--------------------------------------------------------------------------------
CaNeR
Registered User
Thank you for your answers LAS__VEGAS!
I have to try to use that RFs::ReadFileSection . Hope it help .
-vemaka
Registered User
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
Forum Rules