small back up program?

This is a discussion on small back up program? within the C++ Programming forums, part of the General Programming Boards category; Hi.. im a newbie programmer.. and i was just wondering if someone could tell me how i can make a ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    2

    small back up program?

    Hi..
    im a newbie programmer.. and i was just wondering if someone could tell me how i can make a program that will check a file to see if it has changed.. and if it has changed.. to copy the file and paste it as a different name in the same folder..this would be a loop..
    if anyone can help i would appreciate it.. its not much

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    What OS are you design the program to run under? For Windows OS, one solution is to log each file attribute. Set a clock to check the files and back them up if applicable.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    2
    yes its for windows... well.. i know how to copy the files.. by using ifstream and ofstream.. how would i log and check the files?

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    To "log" files, use the FindFirstFile()/FindNextFile() API functions. Look them up in the help or at MSDN.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with small program
    By alokrsx in forum C Programming
    Replies: 9
    Last Post: 05-28-2009, 01:22 AM
  2. C++ Need Help writing a Small program
    By Cyberman86 in forum C++ Programming
    Replies: 7
    Last Post: 09-11-2008, 02:35 PM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  4. Help writing small program
    By guitarhead2000 in forum C++ Programming
    Replies: 2
    Last Post: 10-13-2004, 01:42 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21