How To take one HTML file and duplicate it into 20 copies all named differently?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex
    So Fucking Banned (YEA!!)
    • Jun 2004
    • 10963

    #1

    How To take one HTML file and duplicate it into 20 copies all named differently?

    Is there something that does this?

    I want to take an any.html file
    Duplicate it and have it renamed to freeporn.html teenporn.html freesex.html etc etc, all names taht i insert.
    Care about me?
    Who?
    Me!
    Who?
  • BV
    wtf
    • Sep 2001
    • 10914

    #2
    chamelion submitter

    Comment

    • SmokeyTheBear
      ►SouthOfHeaven
      • Jun 2004
      • 28609

      #3
      how do you want it to create the new names ? random? or from a text file?
      hatisblack at yahoo.com

      Comment

      • Alex
        So Fucking Banned (YEA!!)
        • Jun 2004
        • 10963

        #4
        Originally posted by BV
        chamelion submitter
        Something that is more specific for the certain job that i need?
        Chameleon is also a submitter
        Care about me?
        Who?
        Me!
        Who?

        Comment

        • Alex
          So Fucking Banned (YEA!!)
          • Jun 2004
          • 10963

          #5
          Originally posted by SmokeyTheBear
          how do you want it to create the new names ? random? or from a text file?

          from a text file
          Care about me?
          Who?
          Me!
          Who?

          Comment

          • DamageX
            Marketing & Strategy
            • Jun 2001
            • 14293

            #6
            Originally posted by Alex
            Something that is more specific for the certain job that i need?
            Chameleon is also a submitter
            I had a pal hack me a handy little script for this, one single file and easily modifiable, about three years ago. Unfortunately, this was also about 5-6 HDD crashes ago... I'll look for it on my backup CD's, if I find it I'll let you know.
            Whitehat is for chumps

            If you don't do it, somebody else will - true story!

            Comment

            • DateDoc
              Outside looking in.
              • Feb 2005
              • 14243

              #7
              in the time you have waited for an answer you could have used that awesome feature we all have. Copy and paste!!!

              Comment

              • Alex
                So Fucking Banned (YEA!!)
                • Jun 2004
                • 10963

                #8
                Originally posted by BusterPorn
                in the time you have waited for an answer you could have used that awesome feature we all have. Copy and paste!!!
                Does copy and paste rename too?
                Care about me?
                Who?
                Me!
                Who?

                Comment

                • BV
                  wtf
                  • Sep 2001
                  • 10914

                  #9
                  Originally posted by Alex
                  Something that is more specific for the certain job that i need?
                  Chameleon is also a submitter
                  I know Cham Sub is a submitter, but it will also do what you need.

                  I've thoroughly looked and could not find this in an off the shelf script anywhere.


                  Make a text file with the names you want the copied pages and CS will duplicate and rename them accordingly.

                  Comment

                  • SmokeyTheBear
                    ►SouthOfHeaven
                    • Jun 2004
                    • 28609

                    #10
                    I could create something for you if you want.. I might have something for that hold on..
                    hatisblack at yahoo.com

                    Comment

                    • SmokeyTheBear
                      ►SouthOfHeaven
                      • Jun 2004
                      • 28609

                      #11
                      Wouldnt you rather it be a little random , ? Like maybe make every file the same but the title of the page be the title of the name of the file ?
                      hatisblack at yahoo.com

                      Comment

                      • DateDoc
                        Outside looking in.
                        • Feb 2005
                        • 14243

                        #12
                        Originally posted by Alex
                        Does copy and paste rename too?
                        In the hour this thread has been running I hope you could have typed out 20 renames! If not try typing class.

                        Comment

                        • Alex
                          So Fucking Banned (YEA!!)
                          • Jun 2004
                          • 10963

                          #13
                          Originally posted by SmokeyTheBear
                          Wouldnt you rather it be a little random , ? Like maybe make every file the same but the title of the page be the title of the name of the file ?
                          No i need to have 20 different html files duplicated into 20 more of the same file but with names. It sounds confusing but the reason i need the names to be chosen cannot change.
                          Care about me?
                          Who?
                          Me!
                          Who?

                          Comment

                          • DamageX
                            Marketing & Strategy
                            • Jun 2001
                            • 14293

                            #14
                            Got it! Check your ICQ.
                            Whitehat is for chumps

                            If you don't do it, somebody else will - true story!

                            Comment

                            • prodiac
                              Confirmed User
                              • Sep 2003
                              • 419

                              #15
                              Code:
                              #!/usr/local/bin/perl
                               
                              $file_orig = "_somefile.html";
                              $files = "filename_list.txt 
                               
                              open (FILE, $files);      
                              @allfiles=<FILE>;     
                              close(FILE);   
                               
                              foreach $name (@allfiles) {
                               chop($name);
                               system("/bin/cp $file_orig $name");
                               }
                               
                              exit;

                              Comment

                              • austinth
                                Confirmed User
                                • Jul 2002
                                • 1770

                                #16
                                do a search on google for a doorway page generator.
                                Get A $25 Circuit City GIFT Card - FREE!

                                Comment

                                • CDSmith
                                  Too lazy to set a custom title
                                  • May 2001
                                  • 51460

                                  #17
                                  Originally posted by BusterPorn
                                  In the hour this thread has been running I hope you could have typed out 20 renames! If not try typing class.
                                  Was thinking the same thing as I read this thread.I use a little known technique called "save as"

                                  Seriously, I could have had 20 copies of the same page renamed and saved in fifteen minutes at the most, including a pee break.
                                  Promote Wildmatch, ImLive, Sexier.com, and more!!

                                  ALWAYS THE HIGHEST PAYOUTS: Big Bux/ImLive SIGNUP ON NOW!!!

                                  Put some PUSSYCA$H in your pocket.
                                  ICQ me at: 31024634

                                  Comment

                                  • prodiac
                                    Confirmed User
                                    • Sep 2003
                                    • 419

                                    #18
                                    Originally posted by prodiac
                                    Code:
                                    #!/usr/local/bin/perl
                                     
                                    $file_orig = "_somefile.html";
                                    $files = "filename_list.txt 
                                     
                                    open (FILE, $files);      
                                    @allfiles=<FILE>;     
                                    close(FILE);   
                                     
                                    foreach $name (@allfiles) {
                                     chop($name);
                                     system("/bin/cp $file_orig $name");
                                     }
                                     
                                    exit;
                                    There was a mistake on the following line:

                                    Code:
                                    $files = "filename_list.txt
                                    It should be:

                                    Code:
                                    $files = "filename_list.txt";

                                    Comment

                                    • sumphatpimp
                                      Confirmed User
                                      • Aug 2002
                                      • 5235

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

                                      done!
                                      send money paypal now!

                                      Comment

                                      • Tipsy
                                        Confirmed User
                                        • Jul 2001
                                        • 6989

                                        #20
                                        I made a little VB script once that duplicated a file and renamed it using 1000's of different keyword combos. It made me a LOT of dialler mins back in the free napster days

                                        Hmmm...can't find it now though. If it turns up I'll hit you up and send a copy.
                                        Ignorance is never bliss.

                                        Comment

                                        • ~Ray
                                          visit hardlinks.org
                                          • Jun 2003
                                          • 18361

                                          #21
                                          hit up manuel from oxeo.com , he'll write a script for you very quickly.
                                          his icq is 20214646


                                          ~Ray
                                          Adult Backlinks for Adult Websites - Testimonials Available

                                          Comment

                                          • pstation
                                            Confirmed User
                                            • Jul 2003
                                            • 1135

                                            #22
                                            it'd probably be easier to use .htaccess ... that way when you need to edit it, you wont be having to change 20 different files, creating symbolic links would work well too

                                            Comment

                                            • TheJimmy
                                              ICQ- five seven 0 2 5 5 0
                                              • Jan 2001
                                              • 10747

                                              #23
                                              if you haven't found anything yet, beep me on ICQ at 5702550, I think I have a little mass/renaming tool in VB that could work...I'll go look for it now...
                                              Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.

                                              Comment

                                              • pstation
                                                Confirmed User
                                                • Jul 2003
                                                • 1135

                                                #24
                                                if a redirect is fine, you can do this in .htaccess
                                                Code:
                                                Redirect /folder/faggot.html http://www.mydomain.com/folder/mainpage.html
                                                alternatively, you can use mod_rewrite if a server redirection wont work
                                                Last edited by pstation; 04-17-2005, 09:05 AM.

                                                Comment

                                                • Naughty
                                                  Confirmed User
                                                  • Jul 2001
                                                  • 6482

                                                  #25
                                                  Originally posted by prodiac
                                                  Code:
                                                  #!/usr/local/bin/perl
                                                   
                                                  $file_orig = "_somefile.html";
                                                  $files = "filename_list.txt 
                                                   
                                                  open (FILE, $files);      
                                                  @allfiles=<FILE>;     
                                                  close(FILE);   
                                                   
                                                  foreach $name (@allfiles) {
                                                   chop($name);
                                                   system("/bin/cp $file_orig $name");
                                                   }
                                                   
                                                  exit;
                                                  And what if you want to edit the text between the TITLE tags on the html page as well, and in php instead of perl?
                                                  seks.ai for sale - ping me

                                                  Comment

                                                  • The Sultan Of Smut
                                                    Confirmed User
                                                    • Dec 2004
                                                    • 4325

                                                    #26
                                                    Originally posted by Alex
                                                    Does copy and paste rename too?
                                                    Well yes it does but probably not the way you want it to. So you need a batch file renamer as well. I use this one:

                                                    http://hp.vector.co.jp/authors/VA014...lish/FlexRena/

                                                    Comment

                                                    • Alex
                                                      So Fucking Banned (YEA!!)
                                                      • Jun 2004
                                                      • 10963

                                                      #27
                                                      Yea i already got what i need.

                                                      When you need to name 150 different files into 20 different names time ads up.
                                                      Thanks all.
                                                      Care about me?
                                                      Who?
                                                      Me!
                                                      Who?

                                                      Comment

                                                      • prodiac
                                                        Confirmed User
                                                        • Sep 2003
                                                        • 419

                                                        #28
                                                        Originally posted by Naughty
                                                        And what if you want to edit the text between the TITLE tags on the html page as well, and in php instead of perl?
                                                        It would take me a bit more time than I have right now to get it in PHP, so I modified it a bit in perl ..

                                                        in _template.html this will be your original file you start with, The title line needs to be: <title>%%TITLE%%</title>

                                                        In the filelist, which I called filename_list.txt, the file needs to look like this:
                                                        Code:
                                                        someword1.html||Title for someword1 file goes here
                                                        someword2.html||Title for someword2 file goes here
                                                        someword3.html||Title for someword3 file goes here
                                                        And so on ..

                                                        Here is the modified script .. going out for the rest of the day right now, didn't test it, but it should work....
                                                        Code:
                                                        #!/usr/local/bin/perl
                                                        
                                                        $template = "_template.html"; 
                                                        $files = "filename_list.txt
                                                        
                                                        open (TPL, $template);  
                                                        @tpllines=<TPL>;
                                                        close(TPL);
                                                        
                                                        open (FILE, $files);
                                                        @allfiles=<FILE>;
                                                        close(FILE);
                                                        
                                                        foreach $list (@allfiles) {
                                                         chop($list);
                                                         ($name,$title) = split(/||/, $list);  
                                                         open (NEWFILE, ">${name}");             
                                                          foreach $line (@tpllines) {
                                                           chop($line);
                                                           $line =~ s/%%TITLE%%/$title/;
                                                           print NEWFILE "$line\n";
                                                           }
                                                         close(NEWFILE); 
                                                         }
                                                        
                                                        exit;

                                                        Comment

                                                        • mardigras
                                                          Bon temps!
                                                          • Feb 2003
                                                          • 14194

                                                          #29
                                                          Only talking 20 files or so and want them named various things rather than sequentially numbered, I would just go for copy & hit Crtl+V 19 times and rename them manually.
                                                          .

                                                          Comment

                                                          • Naughty
                                                            Confirmed User
                                                            • Jul 2001
                                                            • 6482

                                                            #30
                                                            Originally posted by prodiac
                                                            It would take me a bit more time than I have right now to get it in PHP, so I modified it a bit in perl ..

                                                            in _template.html this will be your original file you start with, The title line needs to be: <title>%%TITLE%%</title>

                                                            In the filelist, which I called filename_list.txt, the file needs to look like this:
                                                            Code:
                                                            someword1.html||Title for someword1 file goes here
                                                            someword2.html||Title for someword2 file goes here
                                                            someword3.html||Title for someword3 file goes here
                                                            And so on ..

                                                            Here is the modified script .. going out for the rest of the day right now, didn't test it, but it should work....
                                                            Code:
                                                            #!/usr/local/bin/perl
                                                            
                                                            $template = "_template.html"; 
                                                            $files = "filename_list.txt
                                                            
                                                            open (TPL, $template);  
                                                            @tpllines=<TPL>;
                                                            close(TPL);
                                                            
                                                            open (FILE, $files);
                                                            @allfiles=<FILE>;
                                                            close(FILE);
                                                            
                                                            foreach $list (@allfiles) {
                                                             chop($list);
                                                             ($name,$title) = split(/||/, $list);  
                                                             open (NEWFILE, ">${name}");             
                                                              foreach $line (@tpllines) {
                                                               chop($line);
                                                               $line =~ s/%%TITLE%%/$title/;
                                                               print NEWFILE "$line\n";
                                                               }
                                                             close(NEWFILE); 
                                                             }
                                                            
                                                            exit;
                                                            Nice, I don't need it per se, but I thought it was good to know. Will save it for future reference.

                                                            Thanks.
                                                            seks.ai for sale - ping me

                                                            Comment

                                                            Working...