How to? SHORTCUT question.....

Apr 2, 2011
1,441
10
54
North Carolina, USA
I have attached the BTM in question.

1 - The "echo Max Error: %@MAX[%?,%_?]" echos 0 so no error; However the LNK file is not being created. With error code of 0 - not able to tell why it was not created.

2 - I am not sure about the processing of scArgs. The output for example is:
======= Begin Paste
Code:
Library: Pictures
        C:\Users\Galloway\Pictures
        C:\Users\Public\Pictures
        C:\Z_PICS
        C:\Z_UserFiles\My Images
    scCommand: C:\Program Files (x86)\DoubleKiller Pro\DoubleKiller.exe
       scArgs: -nosavereg -clearfolders -addfolder 'C:\Users\Galloway\Pictures' -addfolder 'C:\Users\Public\Pictures' -addfolder 'C:\Z_PICS' -addfolder 'C:\Z_UserFiles\My Images' -run -showlog
  scDirectory: C:\Program Files (x86)\DoubleKiller Pro\
scDescription: Run DKP against files in the Pictures per-USER library
   scLinkName: C:\Users\Galloway\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Double.Killer.Pro\Pictures.lnk
       scMode: 3
Max Error: 0
Press any key when ready...
======= End Paste

Since I need to quote the folders (e.g. C:\Users\Galloway\Pictures ) and also quote the scArgs in the call to SHORTCUT - not sure if it works with ['] and ["] respectively.....
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
Thank you Rex. Now it is to this message....
 

Attachments

  • showlibs.btm
    2.1 KB · Views: 65
Apr 2, 2011
1,441
10
54
North Carolina, USA
One thing I did notice is that there is no error is if the length of scArgs is too long to fit in the .LNK file - there is no error displayed.
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Not sure what that file is you sent, but it's not a batch file. It looks like the output of a batch file (with ECHO ON), with the commands mixed with the results.

And the SHORTCUT command you're using isn't from TCC. The internal SHORTCUT command in TCC doesn't have "-nosavereg", "-clearfolders", "-addfolders", etc. Are you trying to execute a plugin or external SHORTCUT?
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
It's a BTM file - and to help debug the file I had echo commands to echo the contents of the sc* variables.

The tcmd.chm file has:
================
Code:
SHORTCUT 
 
Purpose: Create or display a shortcut

Format: Creation mode

SHORTCUT command args dir desc link mode [iconfile [iconoffset [hotkey]]]

Display mode

SHORTCUT link 

command Command the shortcut executes

args Command line parameters for command

dir Starting directory

desc Description

link Filename of the .LNK file.

mode Initial window mode: 1=normal, 2=minimized, 3=maximized

iconfile File containing the icon to use

iconoffset Icon offset within iconfile

hotkey Hotkey to invoke the shortcut
================

I use SHORTCUT to make an external Pictures.lnk based on the existence and contents of the Pictures user-defined library.

The ["-nosavereg", "-clearfolders", "-addfolders",] are all command line options for DoubleKiller.exe which the Pictures.lnk would execute ..... assuming a pictures library existed....
 
Apr 2, 2011
1,441
10
54
North Carolina, USA
I have the BTM fixed but I don't understand why I am getting error as described in the showlib.err.txt file with the Pando user library, also attached. The full list is at the top of the same file, as well as the output from showlibs.btm

The attached DKP.zip contains:
Code:
 5/03/2017  23:03         <DIR>    .
 5/03/2017  23:03         <DIR>    ..
 4/22/2017  22:40           7,244  Chong_Mel_Komal.library-ms
10/12/2016  12:00           4,649  Documents.library-ms
10/12/2016  12:00           4,739  Music.library-ms
10/12/2016  12:00           1,560  Pando.library-ms
10/12/2016  12:00           5,433  Pictures.library-ms
 5/03/2017  22:53           2,127  showlibs.btm
 5/03/2017  23:11           5,185  showlibs.err.txt
 3/28/2017   9:25         132,608  sysutils64.dll
10/12/2016  12:00           4,637  Videos.library-ms
 

Attachments

  • DKP.zip
    74.6 KB · Views: 57
Similar threads
Thread starter Title Forum Replies Date
S SHORTCUT command question Support 1
S Desktop Shortcut Hotkey question Support 1
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
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
C starting a shortcut from desktop Support 14
N Shortcut stops working after 4NT to TCC Upgrade Support 73
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
E Bug in shortcut command Support 2
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4
mikea How to? %@everything[] question Support 10
A License Question for Single User Support 5
Jay Sage Help Correction (and Related Question) Support 0
S Elapsed time in TCC prompt question Support 0
H command line parsing question Support 5
C Forum question Support 2
B Newbie here, I have a question. Support 4
J Dumb Question ... Support 4

Similar threads