Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug?: Start build through .bat

Discussion in 'Editor & General Support' started by Serellyn, May 16, 2013.

  1. Serellyn

    Serellyn

    Joined:
    Sep 30, 2011
    Posts:
    104
    Hello everyone,

    There's something fishy going on here right now, which I haven't seen before.
    Last project I've used a .bat file to start one of the builds I've made in Unity. The reason for that was that the build needed to autostart when Windows started, with a few seconds delay. It worked greatly, no problems.

    Now, I want to do that again, but something weird happens.

    When I start my unity build called framework.exe, it behaves as it should. For now it's just a blue window that starts another build called idlescreen.exe. It works, no problems. I start the framework.exe and then idlescreen.exe pops up as it should.

    But now, I call framework.exe through a .bat file. Like this
    Code (csharp):
    1. start framework/framework.exe -popupwindow
    2. exit
    But now it gets weird, the framework.exe does start, but does nothing! It doesn't start the idlescreen.exe. It just starts and stays dead. Any idea what this could be?

    p.s. don't get me wrong, I don't blame Unity, I just wonder if anyone has seen this behaviour before and if maybe the Start function gets skipped while calling through .bat?
     
  2. Serellyn

    Serellyn

    Joined:
    Sep 30, 2011
    Posts:
    104
    Problem found! Hopefully I can joy people in the future that experience the same problem.

    I hope this helps future people! :)