Results 1 to 3 of 3

Thread: [RESOLVED] Mobile Phone storage...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    398

    Resolved [RESOLVED] Mobile Phone storage...

    im developing a mobile application using a XML as my database.. my application resides in "\program files\myapp\" folder together with the sample.XML file..

    i want to update "\program files\myapp\sample.xml" when my application start.

    example.. in my SD memory card i have "Update\sample.xml".. how can i overwrite "\program files\myapp\sample.xml" with the newer xml found in my memory card "Update\sample.xml"..

    im using vb.net 2008.. thanks..

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Mobile Phone storage...

    Hey,

    This would be a simple file operation.

    Use the File Class:

    http://msdn.microsoft.com/en-us/libr...e_members.aspx

    First of all delete the old xml file and copy in the new one.

    Gary

  3. #3
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Mobile Phone storage...

    Hi,
    is the one on the SD card a direct replacement - if so just use

    Imports System.IO

    Try
    file.delete ("\program files\myapp\sample.bak")
    file.move("\program files\myapp\sample.xml","\program files\myapp\sample.bak")
    file.move("\Storage Card\Update\sample.xml","\program files\myapp\sample.xml")
    Catch
    End Try

    That what you are looking for or...???

    Damn - Gary posted whilst I was checking something
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

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



Click Here to Expand Forum to Full Width