Search found 475 matches

by misol101
24 Jun 2016 16:47
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

I think my "solution" to this will be to use: call "file" for bat and exe files, and: start "" "file" for all other extensions. This could still lead to freezes if the user actively browsed to e.g. the Chrome folder and started the executable, but it's pretty ...
by misol101
24 Jun 2016 16:41
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

Um ... from my point of view file explorers should run them rather asynchronously. At least I would complain if the Windows Explorer wouldn't ... Haha, yes, true of course. The thing is, I don't really care if they run asynchronously or not for listb, but yes, I guess it is better they do. And I'm ...
by misol101
24 Jun 2016 16:23
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

...the issue you see on the first command in the initial question is with Chrome. If you try the same thing with Firefox it will release the batch script and is what all multi-threaded GUI programs should do. Agreed, they really should! The issue is within my listb file explorer though, so I can't ...
by misol101
24 Jun 2016 15:31
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

foxidrive wrote:
misol101 wrote:Case (5): A new cmd window is opened, and nothing else happens (why is it like this?)

This is what is in your question and what I was addressing.


Ok, that was a side question, not the main one. But agreed, you did answer that. Thank you.
by misol101
24 Jun 2016 15:25
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

This is a longish thread - but in essence the batch will stop because it is missing "" after the start keyword. No, surprisingly it runs as expected, the problem is another (as the thread explains). (though I have learned from this thread that the first argument to "start" shoul...
by misol101
24 Jun 2016 14:58
Forum: DOS Batch Forum
Topic: Listb - a file explorer/viewer inside the console window
Replies: 27
Views: 127828

Re: Listb - a file explorer/viewer inside the console window

Whoops, the link in the first post was not pointing to the new archive. Fixed now!

If you tried to download listb.zip (or gotoxy.zip) earlier today and didn't see the expected dividing lines, please re-download.
by misol101
24 Jun 2016 14:43
Forum: DOS Batch Forum
Topic: Listb - a file explorer/viewer inside the console window
Replies: 27
Views: 127828

Re: Listb - a file explorer/viewer inside the console window

Alright, one more update. Keep thinking it's the last one. Probably not I guess If files/folders are too long for their column, this is now marked at the end of the name with a ~ character. Also, I decided to turn on dividers in listb.bat (I got used to them now ). This means it's the opposite now t...
by misol101
24 Jun 2016 12:12
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

If anybody could reveal the mysteries of /B switch, that would be greatly appreciated too An example, banana.bat: :LOOP echo Banana goto LOOP start /B "" "banana.bat" As expected from the "start" documentation, Ctrl-C does not work to break. I press Ctrl-Break, the prog...
by misol101
24 Jun 2016 11:43
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

aGerman wrote:What happens if you only close the tab with your html file instead of the whole Chrome window?


Nothing, the cmd window is frozen.
by misol101
24 Jun 2016 11:00
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

You cannot change from running an external executable to running a batch file by file association and expect the advice to match your original posts and their responses! Sorry, I have probably been unclear. I tried to "simplify" things at the start, probably a bad idea I'll try again: I h...
by misol101
24 Jun 2016 10:42
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

And using start /B (which I did in case 7 above) has side effects (for console programs/bat files), such as the program running no longer listening to key input [7] however ran cmd.exe with a command parameter and didn't include the additional empty doublequotes True, but doing it your way (as in [...
by misol101
24 Jun 2016 10:30
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

So to explain: I do *not* want to run the program asynchronuously. What I want is how I *thought* "call" or "cmd /C" would behave, i.e. run the program, and whenever it quits, resume batch operation. The problem is that after Chrome quits, the batch file for some reason is still ...
by misol101
24 Jun 2016 10:27
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

As already answered start /b "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" [8] start /b "" "%Program Files(x86)%\Google\Chrome\Application\chrome.exe" [9] start /b chrome.exe [11] What I mean is, if I run e.g: start /b "" "wh...
by misol101
24 Jun 2016 10:07
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

It MUST be normal behavior that calling an external programm blocks the batch execution. Think about command tools like findstr.exe or choice.exe. They would be completely useless otherwise. Of course, but when the external program quits, the batch execution should resume, right!? That's what was n...
by misol101
24 Jun 2016 09:52
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 25166

Re: Programs blocking the current shell

8, 9 and 11 all have the same behaviour: No new window opens, No more freeze! Still, every second time I run Chrome, nothing happens. But the freeze is gone, thanks! (10 produced a faulty line) Not sure I get what's going on here. Unfortunately it's still not quite what I want, because when I use th...