CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    1

    Post running exe and copying a file

    I want to run an exe file in my program.For example i want to run setup.exe under the "Program Files".

    And i want to copy a file under the C:\ to "Program Files"

    Can anybody help me about these two subjects. And please give me a full code.
    For example system(c:\Program Files) like this.

    Thanks

  2. #2
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    628

    Re: running exe and copying a file

    Quote Originally Posted by goddamn
    I want to run an exe file in my program.For example i want to run setup.exe under the "Program Files".

    And i want to copy a file under the C:\ to "Program Files"
    well.. making intallable programs is a whole other art that i know nothing about.. but to run an exe file, look into ShellExecute(..) and/or system(..).

    Quote Originally Posted by goddamn

    And i want to copy a file under the C:\ to "Program Files"
    Look into CopyFile, CopyFileEx on msdn.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured