Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23

    Huh? Adding Date and Time to a file after creating a backup

    hey,

    I dont know why I am having problems doing this but, this is what I need to accomplish.

    1. I need to take a file, back it up with a different extenison.
    (e.g. Delta.mnu to read Delta.Bak) This Ive been doing all along with a File.Copy. Works just fine.

    2. Now I need to add or concatenate the Date and Time to the Delta.Bak file.
    I tried using the System.GetTime and System.GetDate. I cant seem to get it to work?

    I want to increment the Date and Time each time the file is backed up. Not to overwrite the .Bak file

    Is there a function that can be used to Backup a file and add the Date and Time and increment the backup file?

    Let me know what I can try?

    Thanks

    Joe

  2. #2
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Haven't tried it but you used to be able to rename the file as it was copied in SF6...this should do the equivalent in SF7:

    File.Copy(strSource, strDestFolderOnly .. "\Filename" .. System.GetDate(DATE_FMT_ISO) .. System.GetTime(4) .."-".. System.GetTime(3) .."-".. System.GetTime(2) ..".ext");

  3. #3
    Join Date
    May 2005
    Location
    Conecticut
    Posts
    23

    Thumbs down

    I made some changes and it worked exactly how I needed it.
    Thanks for the help.

    -Joe

Similar Threads

  1. Check system date/ time every 30 Minutes
    By patrick6 in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 06-16-2004, 05:54 PM
  2. Function: Compare File Date to ISO Date
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-10-2004, 05:35 PM
  3. Setting my Application to Expire After a Certain Date
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:59 PM
  4. HOWTO: Make an AutoPlay Application Expire
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-09-2002, 10:10 AM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

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