Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Batch File run improperly from .net

FyeRooFyeRoo Member Posts: 5
When I run the batch file with the shell command it does not execute the script correctly. Here is what I have in the script, I am trying to run other exe files with paramters.
[code]
@echo off
echo Startng compiling process...
pause
start C:HLMCinhlcsg.exe currentmap
pause
start C:HLMCinhlbsp.exe currentmap
pause
start C:HLMCinhlvis.exe currentmap
pause
start C:HLMCinhlrad.exe currentmap
pause
echo compiling complete
pause
[/code]

I put the pauses in for debuging reasons.

When the batch file runs these they just pop up in another console screen and then quit really quickly. When I execute the batch file by clicking on it it works perfectly fine. The exe applications that I am trying to run are in the same folder as the batch file.

Any ideas? thanks in advance

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : When I run the batch file with the shell command it does not execute
    : the script correctly. Here is what I have in the script, I am trying
    : to run other exe files with paramters.
    : [code]:
    : @echo off
    : echo Startng compiling process...
    : pause
    : start C:HLMCinhlcsg.exe currentmap
    : pause
    : start C:HLMCinhlbsp.exe currentmap
    : pause
    : start C:HLMCinhlvis.exe currentmap
    : pause
    : start C:HLMCinhlrad.exe currentmap
    : pause
    : echo compiling complete
    : pause
    : [/code]:
    :
    : I put the pauses in for debuging reasons.
    :
    : When the batch file runs these they just pop up in another console
    : screen and then quit really quickly. When I execute the batch file
    : by clicking on it it works perfectly fine. The exe applications that
    : I am trying to run are in the same folder as the batch file.
    :
    : Any ideas? thanks in advance
    :

    Running a batch file works fine for me.
    I have the feeling it's not a Shell problem, but ofcourse I couldn't be sure.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.