Windows 10: C++ Windows 10 "ls" command?

Discus and support C++ Windows 10 "ls" command? in Windows 10 Drivers and Hardware to solve the problem; I want to use C++ (development environment: Dev-C++) to program something similar to the ls command in Linux. I want to display all files in my current... Discussion in 'Windows 10 Drivers and Hardware' started by name123454321, Sep 11, 2020.

  1. C++ Windows 10 "ls" command?


    I want to use C++ (development environment: Dev-C++) to program something similar to the ls command in Linux. I want to display all files in my current directory on the console, and the folders too. But before each folder name should be <DIR>. Example: I have the following files on my desktop: folder1, folder2, Test.txt, Test.something and of course my C++ program(ls.exe)

    So my program should show the following:

    I do this?

    LG

    :)
     
    name123454321, Sep 11, 2020
    #1
Thema:

C++ Windows 10 "ls" command?

Loading...
  1. C++ Windows 10 "ls" command? - Similar Threads - C++ command

  2. Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs

    in Windows 10 Gaming
    Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs: I'm having trouble with my laptop when I connect it to the charger. It pops up a Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs...
  3. Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs

    in Windows 10 Software and Apps
    Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs: I'm having trouble with my laptop when I connect it to the charger. It pops up a Windows Script Warning saying 'Command file not found' C:\Users\Public\svchost.vbs...
  4. Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...

    in Windows 10 Gaming
    Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...: I am unable to use Ctrl+C command to copy files in windows explorer or text in browser. However I am able to use copy command using mouse right click and copy. Also, Ctrl+C command is working if tried using on screen keyboard. I have no issues with Keys C, Ctrl as Ctrl+/A/X...
  5. Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...

    in Windows 10 Software and Apps
    Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...: I am unable to use Ctrl+C command to copy files in windows explorer or text in browser. However I am able to use copy command using mouse right click and copy. Also, Ctrl+C command is working if tried using on screen keyboard. I have no issues with Keys C, Ctrl as Ctrl+/A/X...
  6. Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...

    in Windows 10 Drivers and Hardware
    Why my Ctrl+C command not working but Ctrl, C,V, Ctrl+V & onscreen Ctrl+C working in...: I am unable to use Ctrl+C command to copy files in windows explorer or text in browser. However I am able to use copy command using mouse right click and copy. Also, Ctrl+C command is working if tried using on screen keyboard. I have no issues with Keys C, Ctrl as Ctrl+/A/X...
  7. mistakenly attribute command active on all files in C drive how to reset files

    in Windows 10 Gaming
    mistakenly attribute command active on all files in C drive how to reset files: mistakenly attribute command active on all files in C drive how to reset files https://answers.microsoft.com/en-us/windows/forum/all/mistakenly-attribute-command-active-on-all-files/212a0fa7-deb6-4f5b-8ab8-49930628282f
  8. mistakenly attribute command active on all files in C drive how to reset files

    in Windows 10 Software and Apps
    mistakenly attribute command active on all files in C drive how to reset files: mistakenly attribute command active on all files in C drive how to reset files https://answers.microsoft.com/en-us/windows/forum/all/mistakenly-attribute-command-active-on-all-files/212a0fa7-deb6-4f5b-8ab8-49930628282f
  9. I used the 'FORMAT C:' command in CMD to reset my laptop as it wasnt working & now it just...

    in Windows 10 BSOD Crashes and Debugging
    I used the 'FORMAT C:' command in CMD to reset my laptop as it wasnt working & now it just...: I had a laptop which needed to be reset, the normal methods such as resetting via the windows repair screen, or using a bootable USB to wipe and reinstall windows 10 wasnt working, so i just reset it using CMD and the FORMAT C: command.This completed fine, but now when i boot...
  10. I used the 'FORMAT C:' command in CMD to reset my laptop as it wasnt working & now it just...

    in Windows 10 Gaming
    I used the 'FORMAT C:' command in CMD to reset my laptop as it wasnt working & now it just...: I had a laptop which needed to be reset, the normal methods such as resetting via the windows repair screen, or using a bootable USB to wipe and reinstall windows 10 wasnt working, so i just reset it using CMD and the FORMAT C: command.This completed fine, but now when i boot...