Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. dll files

dll files

Scheduled Pinned Locked Moved The Lounge
question
31 Posts 22 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OriginalGriffO OriginalGriff

    Easy:

    string path = @"D:\Temp\";
    string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
    foreach (string file in files)
    {
    string newPath = file.Substring(0, file.Length - Path.GetExtension(file).Length) + ".exe";
    if (file != newPath)
    {
    File.Move(file, newPath);
    }
    }

    Mind you, you'll have to cope with the system files, and such like...

    You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

    C Offline
    C Offline
    Cristian Amarie
    wrote on last edited by
    #19

    Thanks, I know *how to* do this. (And I'd prefer the much easier PathRenameExtension[^] instead of the buggy C# code - what happens if you have 1.txt and 1.exe and you rename 1.txt in 1.exe, for example?). I was talking about how dumb a solution would be to rename everything in .dll and .exe. I can't think a single reason to do this except an installer or update tool.

    L 1 Reply Last reply
    0
    • C Cristian Amarie

      Thanks, I know *how to* do this. (And I'd prefer the much easier PathRenameExtension[^] instead of the buggy C# code - what happens if you have 1.txt and 1.exe and you rename 1.txt in 1.exe, for example?). I was talking about how dumb a solution would be to rename everything in .dll and .exe. I can't think a single reason to do this except an installer or update tool.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #20

      I didn't know of any reasons either, but now I do: to mess with your significant other.

      1 Reply Last reply
      0
      • M Manfred Rudolf Bihy

        If there's a file called 2g1c.dll I strongly advise you to not try to look at that. Believe me, it's better that way. Things that have been seen cannot be unseen. Cheers!

        "I had the right to remain silent, but I didn't have the ability!"

        Ron White, Comedian

        A Offline
        A Offline
        Asgard25
        wrote on last edited by
        #21

        Looked at it once, couldn't be unseen X| But got all my friends to look at it :laugh:

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          Easy:

          string path = @"D:\Temp\";
          string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
          foreach (string file in files)
          {
          string newPath = file.Substring(0, file.Length - Path.GetExtension(file).Length) + ".exe";
          if (file != newPath)
          {
          File.Move(file, newPath);
          }
          }

          Mind you, you'll have to cope with the system files, and such like...

          You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

          R Offline
          R Offline
          Rage
          wrote on last edited by
          #22

          Or

          C:>ren *.* *.jpg /s

          Leaves the system files untouched (if they are attributed properly).

          ~RaGE();

          I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

          1 Reply Last reply
          0
          • M Manfred Rudolf Bihy

            If there's a file called 2g1c.dll I strongly advise you to not try to look at that. Believe me, it's better that way. Things that have been seen cannot be unseen. Cheers!

            "I had the right to remain silent, but I didn't have the ability!"

            Ron White, Comedian

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #23

            2 guys 1 cow ?

            ~RaGE();

            I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

            M B 2 Replies Last reply
            0
            • R Rage

              2 guys 1 cow ?

              ~RaGE();

              I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

              M Offline
              M Offline
              Manfred Rudolf Bihy
              wrote on last edited by
              #24

              Rage wrote:

              2 guys 1 cow ?

              Close but no cigar! :rolleyes:

              "I had the right to remain silent, but I didn't have the ability!"

              Ron White, Comedian

              1 Reply Last reply
              0
              • R Rage

                2 guys 1 cow ?

                ~RaGE();

                I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.

                B Offline
                B Offline
                Bassam Abdul Baki
                wrote on last edited by
                #25

                That's the (w)hole basis of the movie Human Centipede. Never seen 2G1C nor the centipede movies. Yes, it became a trilogy.

                Web - BM - RSS - Math - LinkedIn

                1 Reply Last reply
                0
                • U User 10979712

                  my boyfriend has put parental locks on our desktop. He is using multiple IP addresses on his laptop as well as multiple wi fi addresses. He has turned all files into dll and exe so they can not be ooened or read. Feeling stupid, but what does all this mean?

                  R Offline
                  R Offline
                  realJSOP
                  wrote on last edited by
                  #26

                  Move out. Your life is in danger. When SWAT busts down your door looking for whoever has access to that computer, they will shoot first, and not bother asking questions.

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    My advice. Date a human. If he doesn't trust you, he doesn't deserve you. If he is hiding things from you, he doesn't deserve you.

                    N Offline
                    N Offline
                    Nish Nishant
                    wrote on last edited by
                    #27

                    I assume OP's in high school. her boyfriend is probably just hiding his extensive collection of porn. :-D

                    Regards, Nish


                    Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

                    C 1 Reply Last reply
                    0
                    • U User 10979712

                      my boyfriend has put parental locks on our desktop. He is using multiple IP addresses on his laptop as well as multiple wi fi addresses. He has turned all files into dll and exe so they can not be ooened or read. Feeling stupid, but what does all this mean?

                      M Offline
                      M Offline
                      MarkRHolbrook
                      wrote on last edited by
                      #28

                      Sounds like you need to get your own computer, password protect it really well and never let him use it. He does sound like a controlling idiot. And how is it you knew he was using multiple IP addresses and WiFis?

                      1 Reply Last reply
                      0
                      • N Nish Nishant

                        I assume OP's in high school. her boyfriend is probably just hiding his extensive collection of porn. :-D

                        Regards, Nish


                        Check out 7 reasons C++ devs will love the VS 14 CTP by Nish Sivakumar Blog: voidnish.wordpress.com

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #29

                        Yes, I'd guess the same

                        1 Reply Last reply
                        0
                        • C Cristian Amarie

                          Change the boyfriend. And also the parental "solution". How the fuck to change all files into binaries?

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #30

                          I suspect a shell extension so he can just bypass it

                          1 Reply Last reply
                          0
                          • C Chris Maunder

                            Try copying some of the (so called) dll or exe files to a new folder and then try renaming them to .jpg, .gif or .png, or possibly .doc, .txt or .zip and see if the file can be opened when renamed with a new extension. And then have a good long talk with him starting with "Why?".

                            cheers Chris Maunder

                            E Offline
                            E Offline
                            ekce e ye ko 2023
                            wrote on last edited by
                            #31

                            https://yupoo.com.co/author/admin/page/154/

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups