Thread: File mover program

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    26

    File mover program

    Hi,

    I'm a total newbie to the c++ language and i would like to create a program that would move a file to a specified folder. For example if i were to drap and drop a file into the executable and it would move th file to another directory. There doesnt seem to be any online tutorials on how to do this. all help is apreciated.

    Thank you.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    http://msdn.microsoft.com/library/de...e/movefile.asp

    a quick msdn search brought up this function that you can use for the actual moving of the file

    For getting the file name from dropping it on your exe, look at the faq and the tutorials on this site. You should be able to figure it out from them.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    19
    How do you shell files in C++? I know how to in VB, but say I were to create a console program where the user would type "open msword" and it would shell C:\program files\...and so-on.
    jotun

    n : (Norse mythology) one of a race of giants often in conflict with the Aesir [syn: Jotun, Jotunn]

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Read the Programming FAQ.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. counting program worked, but test file CRASHES IT.. WHY?
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 05-19-2002, 02:29 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM