also @ TechSpot: Leaked next generation iPhone casing photos validate multiple rumors

TechSpot

How do i create i text file of folder contents?

Discussion in 'Windows OS' started by lowlifelenny, Aug 11, 2002.

Thread Status:
Not open for further replies.
  1. lowlifelenny Newcomer, in training

    I do not know how to do this. Please help. Thanks in advance
  2. Didou Bowtie extraordinair!

    That's a very clear question. We do not know if you're using Windows, DOS, Unix, Linux, BeOS, etc...

    For Windows, at the console type :

    dir C:\temp > contents.txt

    This will create a file called contents.txt with a listing of files on C:\temp ( for more options, type dir /? ).

    dir C:\temp >> contents.txt

    This is almost the same thing as the first instruction, only difference is that if Contents.txt allready exists, its content won't be overwritten by the new one. The new listinbg will be put at the end of what was allready present in the TXT file.

    For Linux, once again at the console type :

    ls /temp > contents.txt

    This will create a file called contents.txt with a listing of files on /temp ( for more options, type ls --help ).
  3. Phantasm66 Newcomer, in training

    Well done Didou, that's an excellent answer.
  4. lowlifelenny Newcomer, in training

    Cheers mate. That was a big help. Thanks again
Thread Status:
Not open for further replies.