Done Start command issue...

May 24, 2010
855
0
Northlake, Il
I don't think this is a support question per se because it works the way it works, but I think it could work better. The issue? The “start” command won’t start batch files that have long file names with spaces in them, even if I put the command name in double quotes. Instead it opens an empty TCC window. In order to run said batch files, I have to do a “dir /x” on them to get their short file names, and I can then start that (although I even have to include the “.bat” extension!). However, this is an issue for me because I have very poor memory (I’m not just saying that; it is a medically diagnosed condition) and I need long file names that are descriptive of what the batch file actually does, and I like to use fairly long file names with spaces in them (I also have rather poor eyesight) so I can remember which batch file I want to use and what it actually does. (I will note that the .bat files run fine from the command line if I don't use the "start" command.) Could this problem please be fixed in an upcoming release??? It’s really annoying to me and is one of the very few complaints I have about this program. (I just sent an example of its power to a friend (again! sadly) to show him how powerful this program is and possibly persuade him to at least try and maybe even actually buy it.)


TCC 12.01.44 Windows 7 [Version 6.1.7600]
 
May 20, 2008
603
0
Sammamish, WA
I've been stung by this before. I believe the solution is to give a quoted
title before the name of the job to run.

From the help:

START always assumes that the first quoted string on the command line is the
title. If there is a second quoted string it is assumed to be the command.
As a result, if the name of the program you are starting contains white
space (and must therefore be quoted), and you don't specify a title, START
will interpret the first quoted string as the title, not the command. To
address this, use the /PGM switch to indicate explicitly that the quoted
string is the program name, or include a title before the program name.

On Sun, Mar 6, 2011 at 15:55, mathewsdw <> wrote:


> I don't think this is a support question per se because it works the way it
> works, but I think it could work better. The issue? The “start” command
> won’t start batch files that have long file names with spaces in them, even
> if I put the command name in double quotes. Instead it opens an empty TCC
> window. In order to run said batch files, I have to do a “dir /x” on them
> to get their short file names, and I can then start that (although I even
> have to include the “.bat” extension!). However, this is an issue for me
> because I have very poor memory (I’m not just saying that; it is a medically
> diagnosed condition) and I need long file names that are descriptive of what
> the batch file actually does, and I like to use fairly long file names with
> spaces in them (I also have rather poor eyesight) so I can remember which
> batch file I want to use and what it actually does. (I will note that the
> .bat files run fine from the command line if I *don't* use the "start"
> command.) Could this problem please be fixed in an upcoming release??? It’s
> really annoying to me and is one of the very few complaints I have about
> this program. (I just sent an example of its power to a friend (again!
> sadly) to show him how powerful this program is and possibly persuade him to
> at least try and maybe even actually buy it.)
>
>
> TCC 12.01.44 Windows 7 [Version 6.1.7600]
>
>
>
>
>



--
Jim Cook
2011 Tuesday: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Wednesday.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
An additional point besides Jim's about the correct syntax of the START command is the file extension you use. Once in TCC, it knows that it is to interpret a .BAT file (though much slower than a .BTM file), but it is not the default processor for .BAT files, COMMAND.COM is, unless you explicitly changed file associations (e.g., using tccbatch.btm from the TCC distribution directory).
--
HTH, Steve
 
May 24, 2010
855
0
Northlake, Il
I've been stung by this before. I believe the solution is to give a quoted
title before the name of the job to run.

From the help:

START always assumes that the first quoted string on the command line is the
title. If there is a second quoted string it is assumed to be the command.
As a result, if the name of the program you are starting contains white
space (and must therefore be quoted), and you don't specify a title, START
will interpret the first quoted string as the title, not the command. To
address this, use the /PGM switch to indicate explicitly that the quoted
string is the program name, or include a title before the program name.
--
Jim Cook
2011 Tuesday: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Wednesday.

Jim, you are, of course, correct. Thank you!
 
May 24, 2010
855
0
Northlake, Il
An additional point besides Jim's about the correct syntax of the START command is the file extension you use. Once in TCC, it knows that it is to interpret a .BAT file (though much slower than a .BTM file), but it is not the default processor for .BAT files, COMMAND.COM is, unless you explicitly changed file associations (e.g., using tccbatch.btm from the TCC distribution directory).
--
HTH, Steve

Steve, I don't really understand what you are saying. #1. I have not meddled with any of my file associations whatsover, and #2. I regularly write and run .bat files that have things in them that are only meaningful to TCC (IFF, EndIff, Do Whiles, etc.), and I took the time just now to try it again (using the "Start" command with the information Jim gave me) to make sure that I was correct and I was correct. (No surprise, the .bat file does not run correctly if I explicitly run it under cmd.exe)

- Dan
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: mathewsdw
| Quote:
| Originally Posted by Steve Fabian
| An additional point besides Jim's about the correct syntax of the
| START command is the file extension you use. Once in TCC, it knows
| that it is to interpret a .BAT file (though much slower than a .BTM
| file), but it is not the default processor for .BAT files,
| COMMAND.COM is, unless you explicitly changed file associations
| (e.g., using tccbatch.btm from the TCC distribution directory).

Sorry, your quotation included my RFC standard signature, and thus your response was assumed to be a postscript part of my post and deleted by my mail client. I need to quote it by manual copy-and-paste below.

| #1. I have not meddled with any of my file associations whatsover, and

I interpret this to mean you did not use TCCBATCH.BTM to make TCC the program Windows uses automatically to execute .BAT files.

| #2. I regularly write and run .bat files that have things in them that are only meaningful to
| TCC (IFF, EndIff, Do Whiles, etc.), and I took the time just now to try it again (using the
| "Start" command with the information Jim gave me) to make sure that I was correct and I
| was correct. (No surprise, the .bat file does not run correctly if I explicitly run it under
| cmd.exe)

I was referring to two separate points. 1/ If the START command is used without naming TCC.EXE as the program to be executed, and passing the name of the batch file as a command line parameter, in other words, the file name of the batch file is the "program" START is to run, Windows uses its file associations to determine which program is to be used to process the batch file. From your comment I infer that in fact your START command invokes TCC explicitly, so this one of my points is not applicable. 2/ The general rule that if you have 2 identical batch files, one with .BAT extension, the other with .BTM extension, TCC requires a lot more time to execute the .BAT version than the .BTM version, UNLESS the .BAT file contains the command "LOADBTM ON". See HELP topic "loadbtm.htm".
--
Steve
 
May 24, 2010
855
0
Northlake, Il
---- Original Message ----
From: mathewsdw
| Quote:
| Originally Posted by Steve Fabian
| An additional point besides Jim's about the correct syntax of the
| START command is the file extension you use. Once in TCC, it knows
| that it is to interpret a .BAT file (though much slower than a .BTM
| file), but it is not the default processor for .BAT files,
| COMMAND.COM is, unless you explicitly changed file associations
| (e.g., using tccbatch.btm from the TCC distribution directory).

Sorry, your quotation included my RFC standard signature, and thus your response was assumed to be a postscript part of my post and deleted by my mail client. I need to quote it by manual copy-and-paste below.

| #1. I have not meddled with any of my file associations whatsover, and

I interpret this to mean you did not use TCCBATCH.BTM to make TCC the program Windows uses automatically to execute .BAT files.

| #2. I regularly write and run .bat files that have things in them that are only meaningful to
| TCC (IFF, EndIff, Do Whiles, etc.), and I took the time just now to try it again (using the
| "Start" command with the information Jim gave me) to make sure that I was correct and I
| was correct. (No surprise, the .bat file does not run correctly if I explicitly run it under
| cmd.exe)

I was referring to two separate points. 1/ If the START command is used without naming TCC.EXE as the program to be executed, and passing the name of the batch file as a command line parameter, in other words, the file name of the batch file is the "program" START is to run, Windows uses its file associations to determine which program is to be used to process the batch file. From your comment I infer that in fact your START command invokes TCC explicitly, so this one of my points is not applicable. 2/ The general rule that if you have 2 identical batch files, one with .BAT extension, the other with .BTM extension, TCC requires a lot more time to execute the .BAT version than the .BTM version, UNLESS the .BAT file contains the command "LOADBTM ON". See HELP topic "loadbtm.htm".
--
Steve

Steve, I am not specifying TCC as part of my "start" command, so therefore I would assume that either I ran TCCBATCH.BTM so long ago (I have been a TCMD/TCC user for probably at least 10 years) that I no longer have any recollection of doing it (particularly if it was just running a batch file) whatsoever, and frankly I'm too lazy to try to look up and examine my file associations for what is not a problem. So if they were changed (which is, of course, highly probable), I assume I either did it so long ago that I no longer have any recollection of it or that it was done by the TCMD/TCC installation program. (Honestly regarding the "lazy" comment, I am, as I have mentioned previously, rather disabled and doing that is more work for me than it's really worth.) And when I stated "that I have not meddled" I meant not explicitly using REGEDIT or any facilities that TCC provides (I know it has some, but I don't really remember what they are and, again, I'm too lazy to look it up for what is not a problem.) As to your second point, you are, of course, almost certainly correct but the batch files I write generally run in so little time (less than a second) that I wouldn't notice the difference between a second and half a second, and I am a creature of habit. (Again, this is mostly due to my disabilities and reluctance to do any work that I really don't need to do, and changing my "habits" is far more work than I really want to invest in this matter unless there is a definite significant payback, and there isn't one, as far as I can tell, in this case.) And finally regarding my disabilities, it took me more than an hour to write and edit this note, which is typical for the things that I have to do.

- Dan
 
Similar threads
Thread starter Title Forum Replies Date
S Done GLOBAL command start directory Suggestions 1
R Documentation CLARIFY START /C HELP Suggestions 0
H Done Start TCMD.EXE with an alternate INI file Suggestions 4
Joe Caverly Done Specify which LIBRARY to run command from Suggestions 2
vefatica File name completion at the beginning of the command line Suggestions 6
L Done Suggestion for TCC 'ver' command Suggestions 8
JohnQSmith Done Modified last command prompt duration Suggestions 5
C Feature Request: Gain some elements of the XXCOPY feature set in COPY or a new "Mass-Copy" command Suggestions 0
D Done SHORTCUT command should accept unexpanded environment variables. Suggestions 0
mfarah Unix-like clear screen keystroke command. Suggestions 0
C Powershell ISE tabbed within Take Command Suggestions 0
D Command Input Feature Request Suggestions 0
R Done Putting command output into an array Suggestions 2
R Done Execute command while at a breakpoint Suggestions 4
R Done Allow single stepping within a command group Suggestions 5
R Declined wish-list: add a command to copy a file to clipboard. Suggestions 17
A Declined Navigation in Take Command Suggestions 4
x13 SORTARRAY command Suggestions 1
R ffind /= and command line Suggestions 0
A Declined Enhance OPTION command functionality Suggestions 2
R Done Command History Window: select more than one line. Suggestions 0
R Declined History: show in which directory a command has been typed. Suggestions 6
N Declined GUI for select command Suggestions 0
Charles Dye Done TCEDIT: Command-line option to print files Suggestions 2
Charles Dye Declined Windows functions and command: Add syntax to specify HWND directly Suggestions 0
vefatica Declined @@key alias at beginning of partial command line Suggestions 10
R Save and load a command dialog set and name it Suggestions 3
Alpengreis Done Add "Slow copy" (/WAIT) parameter to SYNC command Suggestions 1
L Completing the UnQLite command's option set Suggestions 0
joltcoder Done Support an "up" command to go to parent directory and "up3" to go up 3 directories, etc. Suggestions 4
M Declined Command line support for Virustotal Suggestions 0
A Declined Take Command/Debugger as a Visual Studio 2017 add-in/extension Suggestions 4
Joe Caverly Done UnLIBRARY command Suggestions 9
jaejunks Done Option for case-sensitive string comparison in IF command (for CMD compatibility) Suggestions 1
rps Done Log entry command Suggestions 3
rps Done Command and directory history pop-up additions Suggestions 2
rps Command History window options Suggestions 0
rps Declined Command output spacing options Suggestions 0
rps Done Command History edit additions Suggestions 0
J Done Set font in Take Command tabs in a .btm Suggestions 1
rconn Add a parameter to dir command to handle zip files as folders Suggestions 1
rconn Command Line constructor custom DIALOGs for batch files Suggestions 0
rconn A Command-line comparison Suggestions 0
rconn Done database access from command line Suggestions 0
W Done Add colorize to tree command? Suggestions 0
S Done Eject removable USB drives command Suggestions 2
Alpengreis Declined Any chance for quick help with all command-options? Suggestions 3
ehab aboudaya Done Shortcut Key to switch between current active tab & command input Suggestions 0
mfarah Done Proposal: new PROMPT $i special command. Suggestions 2
S Done Enhanced TYPE command Suggestions 9

Similar threads