Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: serch bat program  (Read 12608 times)

0 Members and 1 Guest are viewing this topic.

mat123

    Topic Starter


    Hopeful

    Thanked: 16
    • Yes
    • Yes
    • Yes
  • Experience: Familiar
  • OS: Windows XP
serch bat program
« on: May 23, 2010, 04:42:01 PM »
i am making a bat to exe decompliler  but it has problems could you help me fix them

dir /s C:\%~n1.bat|find "Directory of" > dir.txt
for /f %%a in (dir.txt) do (
cd "%%c"
start notepad %~n1.bat
)



Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: serch bat program
« Reply #1 on: May 24, 2010, 06:45:26 AM »
i am making a bat to exe decompliler  but it has problems could you help me fix them

I was able to fix the syntax. I have no idea what a bat to exe decompliler is.

Code: [Select]
@echo off
dir /s c:\%~n1.bat | find "Directory of" > dir.txt
for /f "tokens=1-2*" %%a in (dir.txt) do (
  cd /d "%%c"
  start notepad %~n1.bat
)

 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

mat123

    Topic Starter


    Hopeful

    Thanked: 16
    • Yes
    • Yes
    • Yes
  • Experience: Familiar
  • OS: Windows XP
Re: serch bat program
« Reply #2 on: May 24, 2010, 06:03:44 PM »
thank you sidewinder
what  a bat to exe decompiler does is it converts bat file compiled to an exe back to a bat file



marvinengland



    Hopeful

    Thanked: 11
    search bat program
    « Reply #3 on: June 01, 2010, 07:29:25 PM »
    I am making a exe to bat decompliler  but it has problems could you help me fix them?


    http://fixunix.com/ms-dos/539963-converting-exe-file-bat-file.html


    C:\test>type   matt524.bat

    Code: [Select]
    @echo off

    rem Convert exe to bat

    rem http://fixunix.com/ms-dos/539963-converting-exe-file-bat-file.html


    rem How to convert exe file to bat file?
    Rem Simple, here's an example:


    @echo off
    REM tested
    ren myfile.exe myfile.bat

    rem another example:
    echo off
    REM results cause problems in some OS's
    ren Buddist.exe Christian.bat


    Output:


    C:\test> matt524.bat

    C:\test>dir Christian.bat myfile.bat
     Volume in drive C has no label.
     Volume Serial Number is 0652-E41D

     Directory of C:\test

    06/01/2010  07:50 PM                 8 Christian.bat

     Directory of C:\test

    06/01/2010  07:47 PM                 9 myfile.bat
                   2 File(s)             17 bytes
                   0 Dir(s)  295,503,876,096 bytes free

    C:\test>
    USA

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: serch bat program
    « Reply #4 on: June 01, 2010, 07:45:18 PM »
    Excellent! Now I have an easy way to convert my JPEG files to PNG files, despite the completely different formats they use!

    wait a second! IT DOESN'T WORK!

    Why oh why doesn't it work!

    It wouldn't be because converting between two or more heterogeneous file types is a bit more involved then simply changing the moniker used to refer to them?
    I was trying to dereference Null Pointers before it was cool.

    Salmon Trout

    • Guest
    Re: serch bat program
    « Reply #5 on: June 02, 2010, 12:18:49 AM »
    Using Marvin's method, when I go to Germany, I don't need to exchange any currency, I can just rename all my pounds to euros! (Why hasn't this idiot troll been banned?)

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: serch bat program
    « Reply #6 on: June 02, 2010, 07:42:07 AM »
    Quote
    what  a bat to exe decompiler does is it converts bat file compiled to an exe back to a bat file

    Perhaps I'm over thinking this. If FileA.bat is converted to FileA.exe, why is a "decompiler" necessary? FileA.bat is the original batch file; there is no need to decompile anything.

    @Marvin: Thank you so much on your lucid and enlightening post about converting file types by using the ren utility. I was able to convert a modest collection of mp3 files to mp4 files and am now able to not only listen to Mott The Hoople, but to watch them perform as well. Is technology great or what?

     ;D
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: serch bat program
    « Reply #7 on: June 02, 2010, 07:49:41 AM »
    Perhaps I'm over thinking this. If FileA.bat is converted to FileA.exe, why is a "decompiler" necessary? FileA.bat is the original batch file; there is no need to decompile anything.

    If you don't have the original batch file.
    I was trying to dereference Null Pointers before it was cool.

    marvinengland



      Hopeful

      Thanked: 11
      Re: serch bat program
      « Reply #8 on: June 02, 2010, 11:41:16 AM »
      @Marvin: Thank you so much on your lucid and enlightening post about converting file types by using the ren utility. I was able to convert a modest collection of mp3 files to mp4 files and am now able to not only listen to Mott The Hoople, but to watch them perform as well. Is technology great or what?


      When Matt's decomplier is up and running we can create the source code for "C" programs and other complied programs. The final decomplier will be published shortly by Matt and the experts here at Computer Hope.

      The ren command has a few bugs with the exe to bat procedure. Wait for Matt's Decomplier

      Matt has another project with snake oil that will repair computer software and hardware.
      USA

      Salmon Trout

      • Guest
      Re: serch bat program
      « Reply #9 on: June 02, 2010, 11:47:18 AM »
      It is way past time that the idiot marvinengland was banned for his stupid trollery. How nice if it could be permanent.


      marvinengland



        Hopeful

        Thanked: 11
        Re: serch bat program
        « Reply #10 on: June 02, 2010, 12:08:27 PM »
        @Marvin: Thank you so much on your lucid and enlightening post about converting file types by using the ren utility. I was able to convert a modest collection of mp3 files to mp4 files and am now able to not only listen to Mott The Hoople, but to watch them perform as well. Is technology great or what?


        Thanks Sidewinder for your post.

        Sidewinder is one of a few Computer Hope members with a Sense of Humor.

        Satire is wasted on most Computer Hope members.
        USA

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: serch bat program
        « Reply #11 on: June 02, 2010, 05:06:14 PM »
        When Matt's decomplier is up and running we can create the source code for "C" programs and other complied programs. The final decomplier will be published shortly by Matt and the experts here at Computer Hope.

        The ren command has a few bugs with the exe to bat procedure. Wait for Matt's Decomplier

        Matt has another project with snake oil that will repair computer software and hardware.


        you poor, insolent troll.

        I was trying to dereference Null Pointers before it was cool.

        Helpmeh



          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: serch bat program
        « Reply #12 on: June 02, 2010, 05:17:40 PM »
        Everyone above this line has been trolled.

        Quote
        ren Buddist.exe Christian.bat
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        marvinengland



          Hopeful

          Thanked: 11
          Re: serch bat program
          « Reply #13 on: June 02, 2010, 06:23:00 PM »
          "You poor, insolent troll."

          Re: search bat program


          When BC has no reasonable response, then BC must insult and name call.
          USA

          Merlyn

          • Guest
          Re: serch bat program
          « Reply #14 on: June 02, 2010, 06:24:34 PM »
          Quote
          When BC has no reasonable response, then BC must insult and name call.

          Haha, I am new to this forum and i think that i already know BC... Maybe not? :P