Markus,

First off, your code work perfectly as I have tried so many other codes and they never worked. Thanks as I am putting it all into a neat Method so all can use.

Now that I have the check and download parts completed (almost that is), I need to know how to RENAME a filename?

I want to RENAME the old file before I download the new updated file. Just in case the download was bad or corrupted they user can still rename the old file back to the original file.

In Windows there are ext of course. The file name is MedDirectoryDB.rbd, i want to change it to MedDirectoryDB.old to save as a backup just in case.

CODE:

 // Delete .old DB file.
 f = GetFolderItem("").Child("MedDirectoryDB.old")
 f.Delete

 // Rename DB file.
 rf = GetFolderItem("").Child("MedDirectoryDB.rbd")
 'rf = Name("").Child("MedDirectoryDB.old")
 rf.name = "MedDirectoryDB.old"

 // Download the New DB File.
 df = GetFolderItem("").Child("MedDirectoryDB.rbd")
result = VersionSocket.Get ("http://www.onclicksoftware.com/updates/MedDirectoryDB.rbd";, df, 2)

END CODE:

I have it that is will DELTE the LAST old rename file then have the current DB file then renamed to the old file name.

Then the new file will begin to download.

But it will NOT Rename the file, what am I doing wrong?

HELP!

Jonathon



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to