Menu

system copy

2007-07-08
2012-09-26
  • Nobody/Anonymous

    can someone please tell me what is wrong with my code

    include <iostream>

    using namespace std;

    int main()
    {
    system("copy program.exe C:\Documents and Settings\All Users\Start Menu\Programs\Startup\program.exe" );
    system("PAUSE");
    return EXIT_SUCCESS;
    }

     
    • Nobody/Anonymous

      Thanks it works!!!

       
    • Nobody/Anonymous

      include <iostream> // try this ...

      using namespace std;

      int main()
      {
      system("copy program.exe \"C:\Documents and Settings\All Users\Start Menu\Programs\Startup\\"" );
      system("PAUSE");
      return EXIT_SUCCESS;
      }

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.