WAD Strange "Start" misbehavior...

May 24, 2010
Northlake, Il
My usual technique for opening a directory in Windows Explorer from the command line is to enter the command "Start DirectoryName", and this works fine. For instance "Start ." to open the current directory, "Start .." to open the parent directory, "Start Z:\" to open the root directory, and even "Start ADirectoryName" to open Explorer window on the directory named "ADirectoryName". However, if the previous directory was named "A Directory Name" then`Start "A Directory Name"` would open a stand-alone TCC session. Now there is a fairly simple work around available (if short file names are enabled): `Start %@SFN["A Directory Name"]` works just fine because the short file name does not (and can not) contain any spaces. But the question is: Why is this necessary?
May 20, 2008
Syracuse, NY, USA
The first quoted sargument to START is, by default, considered a title (caption). Use START /pgm "A Directory Name".
May 24, 2010
Northlake, Il
Thank you, guys!!! Duh!!!! (A result of poor memory and partial blindness so I don't read the docs all that carefully anymore).

But I have to ask, wouldn't you think that if there is only one argument supplied it would be the name of the program and not a title (for a TCC session)? (And since I supply my own titles to the various TCC sessions - the PIDs and bitness of same - I wouldn't see the title of the resulting TCC session even assuming that it's there.)

And Charles, that's a real good idea!
May 24, 2010
Northlake, Il
Thanks, Charles, now I understand. It wouldn't be polite for me to express the words here that I have for cmd.exe and the therefor the result(s) of Rex maintaining compatibility with same (although I totally understand why Rex did that and don't argue with it - the real problem is cmd.exe and not TCC).
May 24, 2010
Northlake, Il
Charles, your alias idea was very good, but I have a similar idea that I think is even better (at least for people with bad memory). Here's the alias that fully illustrated the idea:
Start=*Start %2 /pgm %1 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %15 %16 %17 %18 %19 %20
Works perfectly, and I don't have to think about anything (a very good idea for me!).

P.S. I'll note that "Start" has a lot of arguments! But I can't imagine a maximum of 20 not being more than enough for any real-world situation.

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
Charles, your alias idea was very good, but I have a similar idea that I think is even better (at least for people with bad memory). Here's the alias that fully illustrated the idea:
Start=*Start %2 /pgm %1 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %15 %16 %17 %18 %19 %20
Works perfectly, and I don't have to think about anything (a very good idea for me!).

You could boil it down to:
Start=*Start %2 /pgm %1 %3$

subject to the value of ParameterChar or SETDOS /P.
May 24, 2010
Northlake, Il

I wasn't quite correct in a small (but very important!) way: the second (and following) arguments should really be parameter(s) passed to the program (and there really isn't any easy way to identify the argument that's supposed to be the title). So the title (I never use it!) has to go. So the (now corrected alias) should simply be:
Start=*Start /pgm %$
And your optimization of my original alias is a very good one!
And you can, of course, define it as S*tart= so "s" will continue to work for you.


Scott Mintz
May 20, 2008
Solon, OH, USA

Your alias is functionally equivalent to the original alias that Charles gave you. Since you pass all the arguments after your alias, you don't need to specify %$.

alias s*tart=*start /pgm
Similar threads
Thread starter Title Forum Replies Date
R strange bug? Support 7
Jesse Heines Strange Line Wrapping Behavior Support 14
F strange results Support 9
M Strange error messages from TCC in FTP copy Support 7
M Another possibly strange remote registry issue Support 5
forbin Strange handling of [nonbright] magenta background (v22) Support 2
N Fixed Strange dir behavior Support 6
vefatica REGDIR, strange error message Support 7
T WAD Strange Unexpected "features" in the Debugger Support 2
P Strange mouse behavior with list Support 2
vefatica Strange tcc.exception.log Support 7
vefatica A strange one Support 0
D Strange DO behavior with /O Support 5
Glenn Bowes Strange text at startup Support 5
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
vefatica Big numbers, strange errors Support 1
aedthuio Strange... lpksetup Support 4
CWBillow dir /4 strange Support 2
D Strange issue with FOR loop Support 15
MikeBaas Strange prob with %@replace.. Support 4
vefatica OT: strange files in %TEMP Support 10
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
R WAD Strange output from "memory" command Support 1
M Yet another strange something re something called "@TCONVERT" Support 8
Roedy How to? Strange colours Support 9
vefatica Very strange console font corruption Support 3
Steve Pitts Strange problem with FREE Support 10
A strange error in alias Support 9
newgeekorder Debugger IDE - strange tab and parameter behaviour Support 1
Exolon Strange Prompt. Support 6
vefatica Strange folders Support 1
T Strange CPU value Support 3
J Strange error: unset /s Support 14
M Strange behavior... Support 2
CWBillow Strange happenings Support 2
B Strange handling of a .BAT file Support 5
vefatica Strange behavior reloading SHRALIAS sav files. Support 1
J ASSOC / FTYPE strange error message Support 3
D Strange crashes in @CRC32 and @MD5 Support 9
Charles Dye Strange output, here-doc redirection, TYPE, //UnicodeOutput=Yes Support 6
S Strange CHKDSK behavior Support 6
vefatica Strange results with CP 1252 Support 12
S Strange REN problem - non-English characters Support 3
dcantor Strange status in ACTIVATE command Support 0
J Take command does not start on Windows 10 Support 3
N for start /b anamoly Support 1
U Can not get/start Take Command gui Support 1
DrusTheAxe START /? is incomplete Support 2
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
vefatica Start/stop screensaver from TCC? Support 12

Similar threads