Bug: Some internal commands return a dialog box
Moderators: Hacker, petermad, Stefan2, white
Bet?You can't close Shift-Enter noclose.pif-box with Alt-F4, too, no difference.
Well, I don't have a "cmd" on my system...Entering a command and pressing ENTER launches cmd /k command.
Entering a command and pressing SHIFT-ENTER launches cmd /c command

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Yeah, when I say cmd it's just because I am used to it. I like it short and simple.
The rest I deleted already, sorry for that.
You will be able to close your %comspec% /k command.com window just the same way you are able to do now so nothing will change, am I missing something?
Seems I'm getting confused...
Please explain:
What is the difference between currently pressing Shift-Enter starting noclose.pif and starting %comspec% /k in the future?
Icfu
The rest I deleted already, sorry for that.

You will be able to close your %comspec% /k command.com window just the same way you are able to do now so nothing will change, am I missing something?
Seems I'm getting confused...
Please explain:
What is the difference between currently pressing Shift-Enter starting noclose.pif and starting %comspec% /k in the future?
Icfu
Is this official? (asks he, hopefully)You will have two ways to start a command shell in the future:

Here are some further problems with using noclose.pif under Windows NT.
Say you enter %windir%\NoClose2.bat in the "cmd line:" in the pif file, and use one of these lines in NoClose2.bat, you will find that only the first two work correctly, assuming a standard Windows install (tested under XP).
c:\windows\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9
%winbootdir%\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9
%windir%\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9
This one above fails because for some bizarre reason %windir% is empty.
%comspec% /k %2 %3 %4 %5 %6 %7 %8 %9
This one above is a poor choice because it will use command.com instead of cmd.exe and for example "set t" and "exit" both work differently to how they work in cmd.exe.
I settled on this one below - but there is another problem waiting in the wings...
%winbootdir%\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9
What would you expect to see on the screen if you use this command with shift enter (assuming the noclose2.bat)?
set|find "32"
For some strange reason the pipe and everything after it gets stripped, which does not happen when using %comspec% alone in the PIF file.
Disclaimer: In my experience XP sometimes gives random faults when using cmd, after certain error handlers have been used, so the above effects may differ.

While I don't think TC should abandon Win9x/ME users, IMO the main target audience of TC in the future will be using some version of NT. In my view the main sticking point is the inability to effectively use cmd /k with shift-enter.
I hope it will be one day... It was just a proposal to Hacker's statement. Problem is, noone knows what ghisler thinks because he answers not very often...Is this official?

Doesn't work on my XP system, variable is not defined.%winbootdir%\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9
Reason why it won't work is simple, windir is not defined as a variable in 16-bit command.com.%windir%\system32\cmd.exe /k %2 %3 %4 %5 %6 %7 %8 %9

set|find "32" doesn't work, confirmed.
As I mentioned above, %comspec% is available under ALL OSes so it works under Windows 9X with no prob.While I don't think TC should abandon Win9x/ME users
Icfu
An attempt to make it all clearer.
The problem gets bigger and bigger.
As we can see, changing TC could bring more problems. So we better find the best solution first and then kindly ask Mr Ghisler to consider implementing our proposal.
Why I was against modification - was explained above. I sign under those changes that I consider important. It does not mean I don't want to see that change in TC because I don't need it, but:
Author has a lot of work and there are many things in TC to develop and improve. If there is something user cannot change by himself or it's something urgent and important we can insist on author to change it. But if we will flood him with thousands of requests then he will not keep up and probably stop reading forum (he will have no time
).
It is the only reason why some people are "against".
I suggest that currently we can create noclose.bat and modify it the way we want - wheather we use %comspec%, command.com, cmd /k or cmd /c etc. - it can be modified by your own depending on what you want.
Adding such bat file is not a big problem - you can keep a copy of that in TC installation folder.
What I could suggest if TC was changed in this matter is:
In configuration let there be an option that you add what string should be added after pressing shift+Enter eg. to run noclose.pif or to add cmd /k or cmd /c or %comspec% or anything.
(& Maybe similiar option if you just type command and press enter)
Would this satisfy us? I would be content.
As we can see, changing TC could bring more problems. So we better find the best solution first and then kindly ask Mr Ghisler to consider implementing our proposal.
Why I was against modification - was explained above. I sign under those changes that I consider important. It does not mean I don't want to see that change in TC because I don't need it, but:
Author has a lot of work and there are many things in TC to develop and improve. If there is something user cannot change by himself or it's something urgent and important we can insist on author to change it. But if we will flood him with thousands of requests then he will not keep up and probably stop reading forum (he will have no time

It is the only reason why some people are "against".
I suggest that currently we can create noclose.bat and modify it the way we want - wheather we use %comspec%, command.com, cmd /k or cmd /c etc. - it can be modified by your own depending on what you want.
Adding such bat file is not a big problem - you can keep a copy of that in TC installation folder.
What I could suggest if TC was changed in this matter is:
In configuration let there be an option that you add what string should be added after pressing shift+Enter eg. to run noclose.pif or to add cmd /k or cmd /c or %comspec% or anything.
(& Maybe similiar option if you just type command and press enter)
Would this satisfy us? I would be content.

On the contrary, the problems discussed here are the PRESENT problems because of needed workarounds to let TC work like expected. A change would solve those probs...The problem gets bigger and bigger.
As we can see, changing TC could bring more problems.
Asking ghisler is not needed, he reads everything and decides what he thinks is best anyway. If he is unsure he will ask us.So we better find the best solution first and then kindly ask Mr Ghisler to consider implementing our proposal.

As he chooses to ignore the noclose.pif matter for years now I really don't expect a solution too soon anyway...
This is the 32-bit version of TC, noone will ever need noclose.pif option.In configuration let there be an option that you add what string should be added after pressing shift+Enter eg. to run noclose.pif or to add cmd /k or cmd /c or %comspec% or anything.
%comspec% works on all OSes so the only thing to decide is whether to use /c or /k parameter...
Entering a command and pressing ENTER launches %comspec% /c command.
Entering a command and pressing SHIFT-ENTER launches %comspec% /k command.
Or vice versa via command line switch in wincmd.ini or by adding a checkbox close to the command line.
Seems I am repeating myself, sorry. I will retire from this thread till new ideas arise.
Icfu
[face=courier]On 01-03-2004 18:25:56 +0000 norfie wrote:
n> I'm sorry I didn't know it. Do I have to ask him for
n> permission?
Well, be my guest, nice guy :).[/face]
n> I'm sorry I didn't know it. Do I have to ask him for
n> permission?
Well, be my guest, nice guy :).[/face]
[face=courier]The Protoss do NOT run from their enemies.
It is here, that we shall make our stand.[/face]
It is here, that we shall make our stand.[/face]