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

Author Topic: *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt  (Read 5134 times)

0 Members and 1 Guest are viewing this topic.

preca1

    Topic Starter


    Starter

    *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt
    « on: January 29, 2008, 03:05:09 PM »
    Hi, i did one small programe in notepad. i saved it like *.bat and then i converted it with this app to *.exe.
    in *.bat app i had
    Code: [Select]
    echo %n% >>log.log and it worked. for those who dont know, it adds %n% in log.log file everytime i launch my app.
    when i had *.bat file it worked, but when i converted it to *.exe these >> stoped work and no log.log file is created (in *.bat file it did).

    dont anybody know whats wrong?

    my code is similiar to this:
    Code: [Select]
    @echo off
    set /p n=Create directory
    mkdir %n%
    echo u created %n% directory >>log.log
    pause
    it makes directory %n% and writes u created %n% directory in log.log file.

    in exe works everything but this >> thing

    thanks for help. i am on vista but i think it doesnt matter

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt
    « Reply #1 on: January 29, 2008, 03:50:30 PM »
    On this line:

    echo u created %n% directory >>log.log

    try writing as:

    echo u created %n% directory >> log.log

    It's just a little thing and the cmd processor could parse this, but maybe the converter can't.

    I have yet to see one of these converter programs actually work as promised. They also add load and terminate routines to what was once a simple little text file.

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

    -- Albert Einstein

    preca1

      Topic Starter


      Starter

      Re: *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt
      « Reply #2 on: January 31, 2008, 12:47:11 PM »
      On this line:

      echo u created %n% directory >>log.log

      try writing as:

      echo u created %n% directory >> log.log

      It's just a little thing and the cmd processor could parse this, but maybe the converter can't.

      I have yet to see one of these converter programs actually work as promised. They also add load and terminate routines to what was once a simple little text file.

       8)
      thanks for help, but i am still desperate. i tried it. i even tried to simplify the code and let there only mkdir command,
      Code: [Select]
      @echo off
      set /p n=Create directory
      mkdir %n%
      pause
      but it didnt worked either. and i dont think that there is problem with that set /p n=mkdir, because i have it in another program (also converted) and it works. i dont understand it.
      is there is a solution or i am lost?

      Sidewinder



        Guru

        Thanked: 139
      • Experience: Familiar
      • OS: Windows 10
      Re: *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt
      « Reply #3 on: January 31, 2008, 01:34:23 PM »
      Some time ago the CH Administrator (aka Nathan) found this converter. It's a large file that can be downloaded here.

      You can read the original post at:

      http://www.computerhope.com/forum/index.php/topic,33664.0.html

      Let us know how you make out. For whatever reason converting files seems to be in demand. ;)
      The true sign of intelligence is not knowledge but imagination.

      -- Albert Einstein

      preca1

        Topic Starter


        Starter

        Re: *.bat uses [code]echo xxxx >> *.*[/code] but *.exe doesnt
        « Reply #4 on: January 31, 2008, 03:13:17 PM »
        Some time ago the CH Administrator (aka Nathan) found this converter. It's a large file that can be downloaded here.
        You can read the original post at:
        http://www.computerhope.com/forum/index.php/topic,33664.0.html
        Let us know how you make out. For whatever reason converting files seems to be in demand. ;)
        thank you, but i also used that programme and its not working.
        and i dont know another programme. maybe ill need to search. bye