starting a shortcut from desktop

Apr 2, 2011
1,441
10
54
North Carolina, USA
I have a shortcut on the desktop:

[C:\Documents and Settings\Charles\Desktop]shortcut "c:\Documents and Settings\Charles\Desktop\MOVEFAVS_1.BTM.lnk"
Command=C:\Batch\MOVEFA~1.BTM
ArgumentsDirectory=%userprofile%\Desktop
DescriptionLink=c:\Documents and Settings\Charles\Desktop\MOVEFAVS_1.BTM.lnk
IconOffset=0
Mode=3
Hotkey
[C:\Documents and Settings\Charles\Desktop]assoc .btm
.btm=TCMD.Batch

[C:\Documents and Settings\Charles\Desktop]ftype TCMD.Batch
TCMD.Batch="C:\Program Files\JPSoft\TCMD8\tcmd.exe" /@D:\TakeCommand\INIs\TCMD_v8.ini /c "%1" %*

The problem is that the TCMD_v8.ini is NOT being called / loaded / read. Or at least the TC_Start.btm in the C:\batch folder. I do have an echo .... in TC_START .... at the top of the file and sicne that is not showing I know it's not being loaded.

In case it has anyhting to do with parameters or similar they are:

[C:\Documents and Settings\Charles\Desktop]setdos
ANSI=0
COMPOUND=^
DESCRIPTIONS=1 (DESCRIPT.ION)
ESCAPE=
EVAL=0.10
EXPANSION=0
MODE=1
NOCLOBBER=1
PARAMETERS=&
CURSOR OVERSTRIKE=100
CURSOR INSERT=15
VERBOSE=0

Any suggestions?
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
No replies yet....
----- Original Message -----
From: Charles G
To: CSGalloway@nc.rr.com
Sent: Monday, June 06, 2011 12:03 AM
Subject: [Support-t-2908] starting a shortcut from desktop


I have a shortcut on the desktop:

[C:\Documents and Settings\Charles\Desktop]shortcut "c:\Documents and Settings\Charles\Desktop\MOVEFAVS_1.BTM.lnk"
Command=C:\Batch\MOVEFA~1.BTM
ArgumentsDirectory=%userprofile%\Desktop
DescriptionLink=c:\Documents and Settings\Charles\Desktop\MOVEFAVS_1.BTM.lnk
IconOffset=0
Mode=3
Hotkey
[C:\Documents and Settings\Charles\Desktop]assoc .btm
.btm=TCMD.Batch

[C:\Documents and Settings\Charles\Desktop]ftype TCMD.Batch
TCMD.Batch="C:\Program Files\JPSoft\TCMD8\tcmd.exe" /@D:\TakeCommand\INIs\TCMD_v8.ini /c "%1" %*

The problem is that the TCMD_v8.ini is NOT being called / loaded / read. Or at least the TC_Start.btm in the C:\batch folder. I do have an echo .... in TC_START .... at the top of the file and sicne that is not showing I know it's not being loaded.

In case it has anyhting to do with parameters or similar they are:

[C:\Documents and Settings\Charles\Desktop]setdos
ANSI=0
COMPOUND=^
DESCRIPTIONS=1 (DESCRIPT.ION)
ESCAPE=
EVAL=0.10
EXPANSION=0
MODE=1
NOCLOBBER=1
PARAMETERS=&
CURSOR OVERSTRIKE=100
CURSOR INSERT=15
VERBOSE=0

Any suggestions?
 
May 20, 2008
11,414
99
Syracuse, NY, USA
On Tue, 07 Jun 2011 20:16:32 -0400, Charles G <> wrote:

| TCMD.Batch="C:\Program Files\JPSoft\TCMD8\tcmd.exe" /@D:\TakeCommand\INIs\TCMD_v8.ini /c "%1" %*

That doesn't look right. You're starting TCMD with a particular INI file. But
what INI file is TCC (which will process the BTM) use? I suppose that must be
specified in TCMD's COMSPEC or one of the tab specs.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
That doesn't look right. You're starting TCMD with a particular INI file. But what INI file is TCC (which will process the BTM) use? I suppose that must be specified in TCMD's COMSPEC or one of the tab specs.

IIRC, v8 was before the Take Command / TCC rewrite. In other words, Take Command v8 was a command processor, not a GUI wrapper for TCC and other console programs.
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
I triued with TCC 12.10.67 and still have the problem.

The only difference in the command session would be:

[C:\Documents and Settings\Charles\Desktop]ftype TCMD.Batch
TCMD.Batch="C:\Program Files\JPSoft\TCMD12\tcmd.exe" /@D:\TakeCommand\INIs\TCC_v12.ini /c "%1" %*

If I run the command from the command line everything works.

----- Original Message -----
From: David Marcus
To: CSGalloway@nc.rr.com
Sent: Tuesday, June 07, 2011 08:34 PM
Subject: RE: [Support-t-2908] Re: starting a shortcut from desktop


Since you are asking about v8, most people probably didn't bother trying to figure it out. Is there a reason you are using tcmd to run your btm instead of tcc? Is there only a problem is you use a shortcut? I.e., what happens if you just type the command line?
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
I just call the BTM that the shortcut calls. %userprofile%\desktop> C:\Batch\MOVEFA~1.BTM

----- Original Message -----
From: David Marcus
To: CSGalloway@nc.rr.com
Sent: Wednesday, June 08, 2011 12:22 PM
Subject: RE: [Support-t-2908] Re: starting a shortcut from desktop


Quote:
Originally Posted by Charles G
If I run the command from the command line everything works.

What is the exact command you use from the command line?
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
Well I am using the command the shortcut uses, unless I missunderstanding you? I'll change to using TCC but that isn't going to change anyhtring....
----- Original Message -----
From: David Marcus
To: CSGalloway@nc.rr.com
Sent: Wednesday, June 08, 2011 08:17 PM
Subject: RE: [Support-t-2908] Re: starting a shortcut from desktop


Quote:
Originally Posted by Charles G
I just call the BTM that the shortcut calls. %userprofile%\desktop> C:\Batch\MOVEFA~1.BTM

If you do that, I believe TCC will just execute the btm. It won't use the Windows association. What if you try the command the shortcut is using? And, why don't you associate .btm files to TCC?
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
In v8 there is just TCMD.EXE - not a TCC or 4NT exes. So in v8 the shortcut is of the right syntax. The .BTM runs just fine when run in v8's TCMD.
----- Original Message -----
From: David Marcus
To: CSGalloway@nc.rr.com
Sent: Thursday, June 09, 2011 01:54 PM
Subject: RE: [Support-t-2908] Re: starting a shortcut from desktop


Quote:
Originally Posted by Charles G
Well I am using the command the shortcut uses, unless I missunderstanding you?

In v12, if you run a .btm from inside TCC, TCC just executes it. It doesn't run tcmd.exe, as your shortcut does. I don't recall what v8 does.

I don't have a file association for .btm, but I'm pretty sure TCC will just execute the file rather than looking up the file association.
 
Aug 9, 2009
230
1
referring a "command" cmd _extension_ as a .btm is not advised anywhere

> ? Does that work? Does it work from tcmd and from cmd?
tcc will understand it. cmd will go hmm..... ya what! C:\>`foo` is not
recognized as a........


> -----Original Message-----
> From: David Marcus
> Subject: RE: [Support-t-2908] Re: starting a shortcut from desktop
>
>
> ---Quote (Originally by Charles G)---
> The .BTM runs just fine when run in v8's TCMD.
> ---End Quote---
> What if you use the command that the shortcut is using, which
> looks like it is
>
> "C:\Program Files\JPSoft\TCMD8\tcmd.exe"
> /@D:\TakeCommand\INIs\TCMD_v8.ini /c "C:\Batch\MOVEFA~1.BTM"
> C:\Batch\MOVEFA~1.BTM
>
> ? Does that work? Does it work from tcmd and from cmd?
 
referring a "command" cmd _extension_ as a .btm is not advised anywhere

tcc will understand it. cmd will go hmm..... ya what! C:\>`foo` is not
recognized as a........

I was asking what happens if he tries the full command (i.e., what I posted including the tcmd.exe part) from cmd. After all, that's essentially what the shortcut does.

Not that it matters, but he does have a file association for .btm, so doesn't cmd check the file associations?
 
Similar threads
Thread starter Title Forum Replies Date
C How to? starting TCC/TCMD v25 Support 2
samintz Starting Terminal from TakeCommand Support 3
vefatica Starting *.xlsm? Support 34
Steve Pitts _TCTAB when first starting Take Command Support 2
vefatica Starting Office apps Support 8
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
vefatica Starting Office 365 apps? Support 3
D WAD STARTing WUP apps Support 1
D Occasional TCMD 17 crash when starting additional TCC Support 4
D Folders pane display problem when starting Support 4
samintz Fixed DO /L with stringset starting with /n /e Support 2
C Fixed Starting editor from VIEW Support 9
M Starting Windows GUI programs from the command line... Support 10
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
vefatica Starting shell objects Support 6
C starting TC/LE on the command line Support 1
J starting in chosen directory Support 4
C starting tcmd with alternate INI file Support 15
F unexpected %1 while starting ide Support 6
T Starting a process blocks TCC window... Support 2
T Problem Starting Vim & gVIM Support 5
millardjk IDE dies without starting Support 4
S Starting TCC with double click on tab bar Support 0
vefatica Literal double quotes in SHORTCUT's "args" parameter? Support 6
D The SHORTCUT command again,.. Support 16
C How to bypass UAC warning when shortcut in \Startup folder ? Support 9
D [cosmetic] Shortcut for v24 still has v23 in its comment Support 1
vefatica New Shortcut Key box Support 1
M TCC Taskbar Shortcut Breaks Support 1
C How to? SHORTCUT question..... Support 6
R Shortcut key assignments - default Support 0
vefatica Shortcut/start-up folder nonsense Support 20
samintz How to? Use tilde shortcut Support 3
vefatica Keeping taskbar-pinned shortcut? Support 6
G How to? Trying to create TCC shortcut that opens with blue background (on Windows 8.1 x64) Support 1
vefatica Update removes pinned shortcut? Support 17
noahcoad How to? Create shortcut with env var in path Support 4
vefatica Must update remove my taskbar-pinned shortcut? Support 20
vefatica Update removes taskbar-pinned shortcut Support 7
A Limitation regarding creation of shortcut keys for "copy" Support 0
nickles How to? Shortcut evaluation Support 5
vefatica SHORTCUT behavior (Win7) Support 3
N Shortcut stops working after 4NT to TCC Upgrade Support 73
S SHORTCUT command question Support 1
S Desktop Shortcut Hotkey question Support 1
S SHORTCUT command failure Support 1
S Desktop hotkey creation using SHORTCUT command Support 4
D Always get shortcut in Start Menu folder Support 6
S OT: WinXP shortcut vs. junctions Support 2
M "Shortcut key" on Windows start menu shortcuts Support 5

Similar threads