locked
How to run command line in C code? RRS feed

  • Question

  • I run XP mode in Windows 7 by command line

    c:\windows\system32\rundll32.exe c:\windows\system32\VMCPropertyHandler.dll,LaunchDefaultVM    

    run OK

    But I run it by system() or winexec() in C++

    system("c:\\windows\\system32\\rundll32.exe c:\\windows\\system32\\VMCPropertyHandler.dll,LaunchDefaultVM") ;

    --> Message box  "There were a problem starting c:\windows\system32\VMCPropertyHandler.dll. The specified module could not be found" 

     can anyone please help???

     


     

     

    • Moved by Max Wang_1983 Wednesday, April 20, 2011 1:42 AM Forum consolidation (From:MSDN, TechNet, and Expression Profile and Recognition System Discussions)
    Friday, December 24, 2010 10:30 AM

Answers

  • This was moved out of the Profile forum.

    I can move it to a specific forum if you'd like.

    This is regarding your code:

    system("c:\\windows\\system32\\rundll32.exe c:\\windows\\system32\\VMCPropertyHandler.dll,LaunchDefaultVM") ;

     

    Thanks!


    Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)
    Friday, December 2, 2011 8:45 AM