CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    calling applications

    my project has to call some apps like regedit, scandisk, defrag,...
    calling regedit works fine:
    _spawnl(_P_NOWAIT, "c:\\windows\\regedit.exe", NULL);

    ...but when I try the same code with "defrag.exe"
    or "scandisk.exe" it doesn't work...

    why?
    is there another way to call apps?

    please help me.
    thanks in advance.





  2. #2
    Join Date
    Apr 1999
    Posts
    13

    Re: calling applications

    Hi!
    Try function ShellExecute(). See MSDN for details.

    Dmitry Barashev.


  3. #3
    Join Date
    May 1999
    Posts
    40

    Re: calling applications

    You could also try the CreateProcess function.


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