program name

This is a discussion on program name within the Tech Board forums, part of the Community Boards category; i want to know of a program that will write out all the names of the files in a certain ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    26

    program name

    i want to know of a program that will write out all the names of the files in a certain folder in a list type format. THNX!!

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I have a tutorial on my web site here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>i want to know of a program that will write out all the names of the files in a certain folder in a list type format.<<
    In Windows, load yourself a command console, and run the command DIR.

    Or for *nix, again at a command prompt, use ls, or ls -al to get more information.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > In Windows, load yourself a command console, and run the command DIR.
    Capture it in a text file with redirection:
    dir >Output.txt

    results:
    Code:
     Volume in drive C has no label.
     Volume Serial Number is 0059-F5C1
    
     Directory of C:\Stuff
    
    05/05/2003  07:28 AM    <DIR>          .
    05/05/2003  07:28 AM    <DIR>          ..
    05/03/2003  04:02 PM    <DIR>          Audio
    02/06/2002  09:37 PM    <DIR>          Compiler
    02/06/2002  07:53 AM    <DIR>          Emulation
    05/03/2003  06:33 PM    <DIR>          Files
    02/06/2002  09:45 PM    <DIR>          Flash Animations
    05/03/2003  06:41 PM    <DIR>          Games
    05/04/2003  01:41 PM    <DIR>          Pictures
    04/20/2003  11:47 AM    <DIR>          Programs
    05/02/2003  10:29 PM    <DIR>          Videos
                 112 File(s)    232,163,452 bytes
                  11 Dir(s)  18,375,208,960 bytes free
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21