• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

weird as hell

OogyWaWa

Senior member
so i've got a simple windows shell command: ant -version
open up cmd, type it, works fine

create a batch file that reads:
ant -version
PAUSE

it displays "ant -version" about 100 times then closes the window

tried:
call ant -version
PAUSE

same thing

even tried:

call ant "-version"

but to no avail

tried the same stuff, but java -version instead, no problems at all.

any ideas on why the batch file is fucking up JUST ant?
 
you know what, god dammit, i did. lol. you've got a keen eye my friend.

so, i renamed it, and it isn't doing that crazy shit anymore, but, it shows the ant version for 1 sec then the window closes. i've got a pause statement and all...hrmmmmm
 
i finally figured it out...

turns out ant isn't an exe, it is a batch file. so, when the ant command is called from a cmd prompt, it calls that batch file. when calling a batch file from another batch file, it basically turns everything into the new batch file and once the new one is finished, it is over. so, you have to use the CALL command to call the 2nd batch file. it temporarily runs the 2nd batch file in the first, and once it is finished it goes back to the 1st file's code.

🙂
 
Back
Top