Make /G parameter persistent in COPY/MOVE command?

Apr 17, 2009
16
0
Wildomar, CA
kb6ojs.com
I am using TCMD 20, and have fallen in love with the /G parameter of the COPY and MOVE commands. Often I have to copy or move large files, and the /G lets me know how far along the process is moving. I would like to be able to make this /G parameter "persistent" in that it would always be used by default whenever using either of these commands, rather than having to remember to put it in each time. (I'm getting up there in years and often forget things. Don't get old, it sucks.)

If there's a way to do this, please aim me in the right direction. If not, please note it as a change request. If this is only available in the v21 release, I'll upgrade -- it'll be worth it. Thanks.

//S//
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
One way is alias the commands:
Code:
alias copy=*copy /g
alias move=*move /g

But it might be smarter to create aliases with abbreviated names:
Code:
alias c=*copy /g
alias m=*move /g

The second way (A) saves typing -- once you get used to using the new names -- and (B) doesn't affect the operation of the COPY and MOVE commands in batch files.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
Create a batch file called TCSTART.BTM, and put it in the same directory where TCC.EXE is. It can be very simple, to start with:
Code:
@echo off
alias c=*copy /g
alias m=*move /g

As you create more aliases, it may make sense to move them into a separate text file, say ALIASES.TXT, and load them with an ALIAS /R command:
Code:
@echo off
alias /r "%@path[%_cmdspec]aliases.txt"

You can customize other things in TCSTART.BTM, too. It's a good place to put a PROMPT command, for example. Type HELP AUTOBATCH for more info on TCSTART.
 
Apr 17, 2009
16
0
Wildomar, CA
kb6ojs.com
Once upon a time I knew that. Sometimes, now that I'm going to hit the big six-oh next year, I feel like HAL in 2001: "My mind is going, Dave, I can feel it..." Thanks for reminding me about TCSTART.BTM, I should have remembered that. <Insert picture of me banging my head here>
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage Parameter %$ Different in Aliases and BTMa Support 4
vefatica Literal double quotes in SHORTCUT's "args" parameter? Support 6
T How can I send a simple parameter to a script, in tc 25? Support 2
M Backquoted parameters used in GoSub don't pass string as a single parameter Support 2
vefatica @TIMER's second parameter? Support 3
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
MikeBaas @regsetenv complains "wrong parameter" Support 14
D Envar _tcexit has value, even with /IX startup parameter Support 0
R Fixed Sendmail parameter /USER= does not work Support 4
vefatica "/" as parameter separator? Support 3
MickeyF create an alias with optional parameter Support 4
newgeekorder Debugger IDE - strange tab and parameter behaviour Support 1
fromano Invalid parameter 12.0.34 x64 Support 1
David McClelland TC10 - cdd /t gives invalid parameter Support 2
C Copy (sys) error Support 3
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
vefatica Copy/Paste anomaly Support 4
D Documentation Typo in COPY help Support 0
samintz COPY fails to copy from \\wsl$ Support 20
D Differences between TCC and CMD with COPY /b Support 4
fpefpe copy /u and timestamps Support 4
M Strange error messages from TCC in FTP copy Support 7
G TCMD crash when copy Support 3
Alpengreis How to? Copy DIRs with attributes ... Support 4
E Text copy bug Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
fpefpe copy/cat Support 7
K copy /w slow relative to robocopy /mir Support 0
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
K "copy /z /w" command not deleting read-only files in destination Support 10
K copy changing destination current directory Support 1
D Keystroke to copy previous argument Support 3
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
RChrismon How to? Copy TCMD.INI to New Version Support 7
R How to? Append files in multiple subfolders using copy? Support 8
Dick Johnson COPY /u (?) Support 9
fpefpe Documentation copy /u Support 7
R How to? copy /q ABC.txt + DEF.txt is appending hex 1A Support 8
D copy /g only shows transfer rate Support 1
J Error "Contents lost before copy" Support 3
B Can copy command concatenate multiple mp3 files Support 2
rps Documentation "Copy+Paste+run" question Support 2
fpefpe How to? copy / exclude Support 2
fpefpe robocopy -- copy /w Support 8
C copy /w /p prompts for deletion, but ... Support 3
D Fixed Copy Support 1
fpefpe Documentation copy/move using /c or /u Support 2
samintz WAD Copy/append adds a character Support 3
P Simple RegEx copy Support 9
fromano Fixed COPY ... TO ... crashing Support 3

Similar threads