Thread: File Transfer?

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    File Transfer?

    I don't know if file transfer would be the right wording for what I want to do, but It should be somewhat similar to that. What I want to do is create a program that renames two files that are stored on a user's computer. I would also want another program to be able to initiate this process, and the program should be able to run by itself aswell. Any help on how i should start this would be very welcome! thanks.

  2. #2
    Registered User
    Join Date
    Jul 2010
    Posts
    26
    All modern Operating Systems should have a rename program; you can call it using system().

    Code:
    system("rename foo foo2");

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by illiterate
    What I want to do is create a program that renames two files that are stored on a user's computer. I would also want another program to be able to initiate this process, and the program should be able to run by itself aswell.
    Why do you want to do this?

    Quote Originally Posted by qwertylurker
    All modern Operating Systems should have a rename program; you can call it using system().
    Actually, you might as well use std::rename from <cstdio>.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Jul 2010
    Posts
    2
    thanks for your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM