/g option (%) on MOVE cmd appears broken TCC 14.03.57 x64

Aug 31, 2009
21
0
Re-verified in TCC 14.03.57 x64 on Win7 6.1.7601.

My alias "move=*move /g" no longer shows percentage moved. This behavior has been in the past couple of builds, have no idea of knowing which ones.

*copy /g works, however.
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
WAD (and this hasn't changed in v14).

MOVE first tries to rename the file; if that doesn't work then it copies it and deletes the original. On older versions of Windows you couldn't rename across volumes, but with the newer versions you can. The /G option isn't invoked on a rename, only on a file copy, so for MOVE's on your local drives you're never going to invoke the Windows CopyFile API; hence no /G results.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
WAD (and this hasn't changed in v14).

MOVE first tries to rename the file; if that doesn't work then it copies it and deletes the original. On older versions of Windows you couldn't rename across volumes, but with the newer versions you can. The /G option isn't invoked on a rename, only on a file copy, so for MOVE's on your local drives you're never going to invoke the Windows CopyFile API; hence no /G results.
Should I see the progress indicator when I do something like this?
Code:
v:\> move /g 10mb \\lucky\e$\Workplace\
V:\10mb -> \\lucky\e$\Workplace\10mb

     1 file moved         10,485,760 bytes freed
That took about half a minute. I saw no indication of progress.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
That's up to Windows and your redirector. As I said, if the rename works, the copy (and progress) is never done.
Well there's nothing I can do to get MOVE /G to show me the progress indicator. Here's a filename that has never been used before containing just-now geneated random data. The file must have been copied because now it exists in the destination. But I saw no progress indicator.
Code:
v:\> rndmfile unique_name %@eval[10 * (1 shl 20)]
 
v:\> timer move /g unique_name \\lucky\e$\Workplace\
Timer 1 on: 12:39:05
V:\unique_name -> \\lucky\e$\Workplace\unique_name
 
    1 file moved        10,485,760 bytes freed
Timer 1 off: 12:39:50  Elapsed: 0:00:45.01
 
v:\> dir \\lucky\e$\Workplace\u*
 
Directory of  \\lucky\e$\Workplace\u*
 
2013-01-13  12:37      10,485,760  unique_name
        10,485,760 bytes in 1 file and 0 dirs
    22,829,895,680 bytes free
 
Aug 31, 2009
21
0
WAD (and this hasn't changed in v14).

MOVE first tries to rename the file; if that doesn't work then it copies it and deletes the original. On older versions of Windows you couldn't rename across volumes, but with the newer versions you can. The /G option isn't invoked on a rename, only on a file copy, so for MOVE's on your local drives you're never going to invoke the Windows CopyFile API; hence no /G results.

Is it possible to add a /g option to the rename command, or is that yet another API issue?
 
Similar threads
Thread starter Title Forum Replies Date
D Fixed TCMD /X option Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
D Purpose of DIRHISTORY /N option Support 2
Peter Murschall OPTION //directive=value is a ENDLOCAL Support 3
Charles Dye Does HASH's /E option do anything? Support 1
Charles Dye ASSOCIATE loses /P option Support 4
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
thorntonpg option /u not working The directory name is invalid Support 5
rps TCMD Tabs priority option setting Support 0
A How to? TCMD Configuration Dialog: 'Smooth Scrolling' Option missing? Support 1
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
R Fixed 7ZIP Compression Method Option Doesn't Work Support 1
D everything /o does not open the option dialog Support 4
fishman@panix.com How do I make the selections in the option menu sticky? Support 23
vefatica OPTION /U Support 2
cgunhouse Foldermonitor with "/E" Option Issue Support 6
cgunhouse Foldermonitor with /W option Support 10
Alpengreis TCC-Option for EnableDelayedExpansion (!var!) problem Support 15
D The BatchEcho option Support 8
D /extract: option for the installer Support 4
fishman@panix.com Why are the OPTION settings not sticky??? Support 11
vefatica OPTION /U Support 1
vefatica TPIPE's /perl option? Support 1
I TC "Registering" but NOT Registering, Now Hung on TCMD Option Screen Support 2
cgunhouse IFTP "/S" Option Support 6
Alpengreis [TC 17.x] Install with "option /u" failed Support 5
cgunhouse Jabber Command Line Option Being Transmitted -- Fixed with Build 42 Support 2
Charles Dye OPTION dialog appears underneath Take Command window Support 4
Charles Dye OPTION /U, private beta to public Support 4
Alpengreis WAD Command "MSGBOX /?" does not show option /N Support 2
Phileosophos Fixed Option Dialog Hangs when Using Help Support 7
M Web Help option in Take Command 15 broken? Support 3
fpefpe How to? start command /tab option/switch Support 6
S How to? Find installer downloaded by "option /u"? Support 11
Charles Dye Odd behavior after using OPTION "Advanced" tab Support 2
noahcoad Option to always CALL? Support 4
fishman@panix.com Option: Updates broken in Build 36 Support 3
S option /u question Support 19
R CompleteAllFiles missing in option? Support 1
vefatica I'd *always* like the "Preview" option Support 5
S Directory history entries from /S option of various commands Support 2
Stefano Piccardi INIQuery option Support 1
M Missing PDir option... Support 5
vefatica OPTION /U Support 6
Jay Sage Version 12: No Option to Configure Toolbar Support 2
nickles OPTION "trims" long ColorDir directive Support 1
D Copy /n option order Support 5
G tcmd v11 installation option for pinning to taskbar Support 3
Joe Caverly START and the /TAB option Support 0

Similar threads