search

Home  >  Q&A  >  body text

How to get the paths of all .exe files on this machine in C C++

C Scan the .exe files in all disks of this machine in C and obtain their paths. What should I write? What idea?

为情所困为情所困2761 days ago843

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-06-07 09:26:04

    In Windows, you open cmd.exe and enter

    dir  /s /b *.exe

    It will search all .exe files starting from the current directory. You can call these commands using the system() function under Windows.

    reply
    0
  • Cancelreply