Thread: Continuously moving files with windows commands

  1. #1
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73

    Continuously moving files with windows commands

    Alright, let me explain what it is I want to do:

    1) On a computer, pretend there is an H:
    2) I want to copy all files from the H: to a folder in the C: (like every 10 seconds)
    3) Then, every ten seconds I want to put INTO the H:, all the contents of a certain folder on the C:, overwriting any file with the same name, but don't delete anything else. And the file would be cut not copied so it doesn't stay there.

    I could see how to do it with system commands, but then you would get the black cmd box popping up. How would I go about this with windows commands so the command prompt box doesn't pop up when moving files?

    Thanks.
    Last edited by deltabird; 04-16-2003 at 05:30 PM.

  2. #2
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    so.....nobody knows what functions you use to cut, copy, or paste files?

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    ...or perhaps people get suspicious if you're making a program to copy and overwrite files every 10 seconds without the user knowing...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    so just because you're suspicious means you're not going to help me with some windows functions? what a great windows programming board. just because people are suspicious of you means they refuse to help you out with telling you windows functions to cut copy or paste files.

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    any plonker can go to msdn stick WM_TIMER and File functions into the search box and there will be plenty of information for you. Any reasonable compiler will also have documentation in the helpfiles. Have you actually done any research yourself?
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making a folder and moving files into it?
    By HLA91 in forum C Programming
    Replies: 1
    Last Post: 01-27-2008, 12:38 PM
  2. partition for windows and linux files
    By MisterSako in forum Tech Board
    Replies: 5
    Last Post: 09-21-2004, 05:38 PM
  3. How I Can play the .wav files like as windows in Turbo C++?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-05-2002, 06:57 PM
  4. How I can use the windows font files with (.ttf) extension?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-18-2001, 06:01 AM
  5. How I can dispaly the windows bitmap files in 800*600 256 color mode?
    By hadizadeh in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-15-2001, 05:31 AM