Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Jul 2004
    Posts
    313

    Copy Folder to new location every day at midnight?

    Hi all, is it possible to schedule a folder copy from one location to another?

    I am looking into a backup solution for our company files, they are all just in a folder on a secondary drive but I would like them to be copied to a thrid drive every night.

    Can anyone please help with this?

    Thanks guys.

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Sure, there are lots of ways to do this. If you restart your computers each day, simply set your app to use a registry key to copy the folder, "every 3 startups". That's ideal because it takes no resources.

  3. #3
    Join Date
    Jul 2004
    Posts
    313
    Thanks for the quick reply Corey,

    I am not sure how to use the registry, Is there any way of checking the system clock for a specific time and then copying the folder if the time is matched?

    The computers are never turned off as they are hosting files via ftp access.

    Thanks.

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi. OK in that case it's real easy, just create a utility to copy the folder and add it to your Windows Task Scheduler set to whatever frequency you require.

    http://www.iopus.com/guides/winscheduler.htm

  5. #5
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    ianhull

    Here you have an example to copy the content of a folder to another folder at a given time. Insert the desired time at the second input object and let the application do the rest. It will notify you if the copy failed or succeded. Of course you must change the given folder locations first with yours.
    This is just an example to get you started.
    Last edited by sside; 02-22-2007 at 04:55 PM.

  6. #6
    Join Date
    Oct 2002
    Posts
    2
    That example works just great! Any chance someone could tell me how I can set the destination folder to a server? here is the path

    \\Slc-cst\slc-cst\Common\system

  7. #7
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Code:
    \\Slc-cst\slc-cst\Common\system
    Code:
    \\\\Slc-cst\\slc-cst\\Common\\system

  8. #8
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Here is a ready to go application to copy files from one location to another at a given time.

  9. #9
    Join Date
    Jul 2004
    Posts
    313
    Thanks you guys,

    I really appreciate your help.

    Ian

  10. #10
    Join Date
    Oct 2003
    Posts
    164
    Hey that's great sside, thanks!

    Has anyone attempted any modifications that copy between two machines at different locations (via ftp or similar connection)?
    -Scott F.

  11. #11
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by sferguson
    Has anyone attempted any modifications that copy between two machines at different locations (via ftp or similar connection)?
    Are you asking if it is possible to copy files from computer a to computer b when the application itself is at computer c in a (local) network computers (no ftp)? If that is the question then yes is the answer.
    To this program very easy a mail notification option can be added to let the user know how the file copy ended. May be sometime i add that too...

  12. #12
    Join Date
    Oct 2003
    Posts
    164
    Well, actually the specific scenario in mind is:

    Computer A (Webserver at Main Office)
    - has directory where company PDF files are saved

    Computer B (WinXP Pro Workstation at Remote Office)
    - employees use attached scanner to save PDF files on local hard drive

    Goal: Use the CopyFolder app to copy (upload) files from Computer B to a directory on the Webserver (Computer A). The CopyFolder app itself could be located on either machine.

    I suppose if Computer A and Computer B were connected through a VPN or WAN, it would work just as if the two machines were "local".

    However, currently a VPN or WAN is not available, so I'm exploring options for the files to be automatically sent to the webserver, using some variation of a standard Internet connection.
    -Scott F.

  13. #13
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    I see your point.
    It can be done. If i come up with some solution i will post it here.

  14. #14
    Join Date
    Oct 2003
    Posts
    164
    Without a doubt, that would be wonderful, and... I would be truly grateful. Just for the record though, I didn't mean to sound as though I were fishing for a finished product...just wanted to get the ol' wheels turnin'. Most of the web-related dev I've worked on all takes place on local boxes, so FTP'in files "to and fro" is new territory for me
    -Scott F.

  15. #15
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by sferguson
    ... Just for the record though, I didn't mean to sound as though I were fishing for a finished product...
    What i create, i create with pleasure. What i share, i share with pleasure.
    Here you have the application: http://www.indigorose.com/forums/showthread.php?t=10521.
    Place the application at any workstation insert the host data, wanted time, location where the files to be uploaded are, location where you want to upload the files, and let the application do the rest. If something goes wrong it will let you know what went wrong. I have done lots of testings.
    But still remain some questions, like what you do with the files at the workstation after you upload them? Next time the application start it will find them again and upload them again and you don't want that.

Similar Threads

  1. Function to Copy a Folder, Sub-folders and files
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 50
    Last Post: 05-06-2006, 07:49 AM
  2. Copy folder and subfolders
    By rookie99 in forum Setup Factory 7.0
    Replies: 3
    Last Post: 11-25-2004, 02:37 AM
  3. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 PM

Posting Permissions

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