Rename a file

Discussion in 'Questions (Windows Mobile)' started by HARRY, Aug 20, 2007.

  1. HARRY

    HARRY Active Member Licensed User

    Hallo,

    I need to rename a file at runtime. Does an equivalent exist for the Name statement of Visual Basic like Name oldpathname As newpathname?

    Harry
     
  2. Cableguy

    Cableguy Expert Licensed User

    I Dont think there a direct way of doing that, but you can do it in steps..

    Create a copy of the file and then delete the old file...
     
  3. HARRY

    HARRY Active Member Licensed User

    Thanks Cableguy,

    Indeed, that is a solution; however, the file is pretty long and than it takes quite some time to make a copy. So, a direct rename is preferable.

    Harry
     
  4. specci48

    specci48 Well-Known Member Licensed User

    Hi Harry,

    if you are not aware of installing another tool on your ppc you could use the freeware Mortscript (http://www.sto-helit.de/)
    as an enhancement of the shell command of Basic4ppc.

    As I remember a direkt rename of files is available.


    specci48
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice