Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by element

  1. E

    Redirect output from "start"-ed console

    Yes, it does, thanks. It even works from a batch file, without escape characters.
  2. E

    Redirect output from "start"-ed console

    Still nothing. BTW, I believe the first param for "start" would be the console title: start "test" "%_cmdspec" /c test.bat ^> output.txt
  3. E

    Redirect output from "start"-ed console

    I have a test.bat which contains just this: "echo blah". When I runtest.bat > output.txtI get output.txt containting "blah". How do I redirect the output if test.bat is launched with "start":start "test" test.bat > output.txtI get no output.txt. I tried escaping the ">" with "^" and "\", but no...
  4. E

    Batch file pauses for no reason

    Well, "start /wait" has yet to stall on me, so I'll stick to it.
  5. E

    Batch file pauses for no reason

    FWIW, I did some investigating: no redirected warnings, but the stalled console does seem related to external command-line tools: 7-zip, erunt (old-school registry backup), maybe others. If they're called from the batch directly, like this: 7z.exe [args]they hang 5-10% of the time (no error, no...
  6. E

    Batch file pauses for no reason

    QuickEdit is on, but the batch starts its own console when no one's touching the machine. I'd say a stray left-click is unlikely, but I'll double check. Thanks for the tip.
  7. E

    Batch file pauses for no reason

    Hm, that's an interesting thought: a warning that's directed away from the console, yet waiting for a reply. It can't be a major error because I'd have noticed if the batch didn't do its job. Next time I see a stall I'll check if it's a command line app and if it could be giving off a...
  8. E

    Batch file pauses for no reason

    No manual key presses, no keystack anything. BTW, is there a guarantee that a command line app (zip, xcopy, etc) will always report to Win when it's done? Can a command line app finish without an error, but not report this to Win?
  9. E

    Batch file pauses for no reason

    Nope, no hidden msgboxes, I checked in Nirsoft's Window Lister. If it was some command-specific msg, I'd expect it to occur on the same line in the batch file, whereas the stall can happen anywhere. I can't really debug this with breakpoints, because I can't predict where the issue will occur...
  10. E

    Batch file pauses for no reason

    TCC console. A timing bug wouldn't necessarily bite everyone if it arises only under some obscure, rare circumstances. Anyway, it's a speculation.
  11. E

    Batch file pauses for no reason

    Not really. It's 490 lines of complex code and the pauses happen randomly i.e. anywhere. Where it happens in the script changes with each run (otherwise debugging it would be a snap). On a "good" night the whole batch file runs just fine, on a "bad" day you get a pause somewhere. It almost looks...
  12. E

    Batch file pauses for no reason

    Win7 x64, TC 11. Every now and then I see a strange pause in TCC batch execution. The batch file just pauses. All I need to do to get it to move on is to hit Enter in the console window. The pauses are not disk/CPU/network related: no high activity is taking place. Since hitting Enter gets the...
  13. E

    Scrolling output to single, non-scrolling line

    Thanks. I read the alias from an alias.lst file. So to prep the console, I first add one line, than move the cursor up. ping2=echo. & echos ^e[1A & ping -t jpsoft.com | for %x in (@con:) echos ^r%x^e[K
  14. E

    Scrolling output to single, non-scrolling line

    How would I implement the above as an alias? If I copy the line literally, I get the multiline ping. ping2=ping -t jpsoft.com | for %x in (@con:) echos ^r%x^e[KI tried replacing the "^" with "%=", but it's still multiline. ping2=ping -t jpsoft.com | for %x in (@con:) echos %=r%x%=e[K
  15. E

    Scrolling output to single, non-scrolling line

    Thanks, it worked like a charm. Makes things way more readable.
Back
Top