creating a directory file..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NaughtyJenn
    Confirmed User
    • Apr 2003
    • 7355

    #1

    creating a directory file..

    need to be able to take a selected directory on my ftp and have it output every file into a .txt list format

    ie

    a.jpg
    b.jpg
    c.jpg


    and so forth..
  • Global Dialers
    Confirmed User
    • May 2004
    • 1349

    #2
    so what is it you are looking for or were you just posting to let us know what you were doing
    the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
    the rest of thegalleries are free placements.

    Comment

    • NaughtyJenn
      Confirmed User
      • Apr 2003
      • 7355

      #3
      need a program or if anyone knows any fast ways to have all the files listed in a directory output into a txt file

      Comment

      • NaughtyJenn
        Confirmed User
        • Apr 2003
        • 7355

        #4
        anything like this exist or am i giong crazy thinking there was something lol

        Comment

        • zzgundamnzz
          Confirmed User
          • Apr 2002
          • 6102

          #5
          Why don't you download them first and get a Mass File Renamer?


          Comment

          • ZoiNk
            Confirmed User
            • Feb 2002
            • 2370

            #6
            in Unix, log into the shell (use a telnet or ssh program)


            ls >> filelist.txt


            once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

            ls -al >> filelist.txt


            That's assuming you know how to move around in unix.
            ZoiNk
            "People can have the Model T in any color - so long as it's black." - Henry Ford

            Comment

            • Elli
              Reach for those stars!
              • Apr 2003
              • 17991

              #7
              Originally posted by zzgundamnzz
              Why don't you download them first and get a Mass File Renamer?
              I believe she wants a listing of the contents of a directory, not to rename files.

              That's a Unix command.. where are our Unix geeks? Surely they are somewhere.

              I'm having flashbacks to grep and whatnot, but can't remember the syntax.
              email: [email protected]

              Comment

              • Elli
                Reach for those stars!
                • Apr 2003
                • 17991

                #8
                Originally posted by ZoiNk
                in Unix, log into the shell (use a telnet or ssh program)


                ls >> filelist.txt


                once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

                ls -al >> filelist.txt


                That's assuming you know how to move around in unix.
                ZoiNk
                Et voila!

                I'm sure you could put it in a nice little script/batch pgm, non?
                email: [email protected]

                Comment

                • NaughtyJenn
                  Confirmed User
                  • Apr 2003
                  • 7355

                  #9
                  Originally posted by ZoiNk
                  in Unix, log into the shell (use a telnet or ssh program)


                  ls >> filelist.txt


                  once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

                  ls -al >> filelist.txt


                  That's assuming you know how to move around in unix.
                  ZoiNk
                  thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx

                  Comment

                  • Helix
                    Confirmed User
                    • Feb 2002
                    • 6021

                    #10
                    Originally posted by ZoiNk
                    in Unix, log into the shell (use a telnet or ssh program)


                    ls >> filelist.txt


                    once you are in the directory you want. It will create filelist.txt with all the filenames. I personally like

                    ls -al >> filelist.txt


                    That's assuming you know how to move around in unix.
                    ZoiNk

                    Comment

                    • NaughtyJenn
                      Confirmed User
                      • Apr 2003
                      • 7355

                      #11
                      anyone care to tell me what prefix i put beside "dir" in dos.. just did dir /? and cant see anything where a command would be to write to a file

                      Comment

                      • beergood
                        Confirmed User
                        • Jun 2003
                        • 2918

                        #12
                        prog:
                        ----

                        #!/usr/bin/perl

                        $path = @ARGV[0];

                        system("ls -al $path > output.txt");

                        --

                        execution

                        ./program.pl /path/you/want/to/list/

                        should work.
                        icq: 320340263

                        Comment

                        • beergood
                          Confirmed User
                          • Jun 2003
                          • 2918

                          #13
                          Originally posted by NaughtyJenn
                          thats just it.. i dont have shell access.. hrmmm only other way is if i do that by downloading everything and writing the file from dos... thanx
                          Your isp will probably give you shell access if you email them and ask for it.
                          icq: 320340263

                          Comment

                          • NaughtyJenn
                            Confirmed User
                            • Apr 2003
                            • 7355

                            #14
                            Originally posted by beergood
                            prog:
                            ----

                            #!/usr/bin/perl

                            $path = @ARGV[0];

                            system("ls -al $path > output.txt");

                            --

                            execution

                            ./program.pl /path/you/want/to/list/

                            should work.
                            dont have shell access though.. no ssh on the server..

                            Comment

                            • NaughtyJenn
                              Confirmed User
                              • Apr 2003
                              • 7355

                              #15
                              Originally posted by beergood
                              Your isp will probably give you shell access if you email them and ask for it.
                              not my isp its a ftp account i need to get all the filenames from for a dmca notice..

                              Comment

                              • beergood
                                Confirmed User
                                • Jun 2003
                                • 2918

                                #16
                                Originally posted by NaughtyJenn
                                dont have shell access though.. no ssh on the server..
                                Yeah I caught that late. I can't live without a shell
                                icq: 320340263

                                Comment

                                • NaughtyJenn
                                  Confirmed User
                                  • Apr 2003
                                  • 7355

                                  #17
                                  Originally posted by beergood
                                  Yeah I caught that late. I can't live without a shell
                                  yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol

                                  Comment

                                  • NaughtyJenn
                                    Confirmed User
                                    • Apr 2003
                                    • 7355

                                    #18
                                    n/m got it dir > textfilename.txt

                                    thnx for the help though
                                    Last edited by NaughtyJenn; 05-17-2004, 04:44 PM.

                                    Comment

                                    • beergood
                                      Confirmed User
                                      • Jun 2003
                                      • 2918

                                      #19
                                      Originally posted by NaughtyJenn
                                      yeah if i had shell access it would be alot easier.. coulda dumped it and did what i have to do and be gone..but of course my luck isnt that good .. i have all the files downloaded onto my hd just need to get a txt version listing all the files lol
                                      I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.
                                      icq: 320340263

                                      Comment

                                      • beergood
                                        Confirmed User
                                        • Jun 2003
                                        • 2918

                                        #20
                                        Originally posted by NaughtyJenn
                                        n/m got it dir > textfilename.txt

                                        thnx for the help though
                                        good deal. remember that for the once in a blue moon I have to do something on my windows machine
                                        icq: 320340263

                                        Comment

                                        • NaughtyJenn
                                          Confirmed User
                                          • Apr 2003
                                          • 7355

                                          #21
                                          Originally posted by beergood
                                          I fucking suck at windows. About all I can think is open WS_FTP and press the DirInfo button on whatever directory you want a listing off. You'll have the text version of the directory information and you could probably narrow it from there.
                                          yeah just took what i knew from shell and applied it to dos format wicked thanks alot everyone though.. time to go file a report

                                          Comment

                                          Working...