File mover program

This is a discussion on File mover program within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm a total newbie to the c++ language and i would like to create a program that would move ...

  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
    University of Waterloo
    Posts
    1,904
    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.
    benforbes@optusnet.com.au
    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, 04:44 PM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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, 03:29 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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