Fixed No changes to the descript.ion file

Jan 29, 2012
16
0
Russia, Novosibirsk
Hello All!

here's a simple example of bug:

Code:
[C:\]md /d 1 %+ md A %+ md B
[C:\1]describe /a:d *.* "Happy New Year!"
[C:\1]dir /zkmh
A            <DIR>      29.01.12 23:52  Happy New Year!
B            <DIR>      29.01.12 23:52  Happy New Year!
[C:\1]move A B
C:\1\A -> C:\1\B\A
[C:\1]type DESCRIPT.ION
"A" Happy New Year!
"B" Happy New Year!
[C:\1]dir /zkmh B
A            <DIR>      29.01.12 23:52
[C:\1]
There is no descript.ion file in the В directory :-(
 
Oct 24, 2011
73
1
This is a long-standing situation that I reported as a bug as far back as 4NT version 8. If you move a directory to another location the directory description does not follow.

When I originally reported it, I felt the responses were less than helpful, so I created a btm workaround. It creates the destination directory first, copies the description from the source directory and then uses *move /s to relocate the directory.

I call a REXX script to get the description of the source directory and I haven't bothered to update the btm because it works, but nowadays you can use the @DESCRIPT function instead.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
TCC *used* to move the description for directory moves, until we got a lot of requests (demands?) to support the CMD.EXE behavior for that particular syntax (which short-circuited TCC's attempt to move the description).

I just went back and took another look at the code, and I worked out a way to have it both ways. V13 build 40 (which should be released in a few days) will now copy the directory description to the target and remove the original description.
 
Oct 24, 2011
73
1
Thanks Rex. That means I'll be able to abandon my workaround BTM that I've used since 2007. It makes me a little sad. :(
 
Jan 29, 2012
16
0
Russia, Novosibirsk
pizzaman,
I also made ​​a version of the workaround.But every time I need to be aware of such errors. Although the program should always be careful ))

Rex,
thank you for your reply. What do you think, next code has a bug?

Code:
[C:\]md /d 1 %+ md A %+ md B
[C:\1]mv A B /s
TCC: (Sys) No files.
"C:\1\A\*"
0 files moved

[C:\1]dir /sfh
C:\1\B
[C:\1]
Directory "A" has been deleted.

/wnr, Alexander
 
Oct 24, 2011
73
1
First of all, using multiple commands on the command line can be confusing and can lead to multiple errors if something is mis-typed, so I rarely do that. I'm a step by step person. :)

You apparently have MV as an alias for MOVE and I'm not sure what options you have by default.

Since there are no files or subdirectories in A, the /S is unnecessary. The error is saying there's no files found and MOVE quits, probably because the syntax is incorrect anyway.

*MOVE A B works, but I can't imagine anyone wanting to move an empty directory. In the real world you should always specify the destination directory, even if it will have the same name at the new location.

MOVE /S A B\A is correct, empty directory or not.

Using the correct syntax you can move a directory and specify that it have a different name at the new location. If the A directory is empty, it will report "TCC: (Sys) There are no more files." but the directory will be moved anyway.

Also, I would suggest that you specify your options on the command line before the source and target. That's what the help files specify and it makes it easier to recall a command and change the source and/or target, which I do quite often.
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage Changes to Keyboard Settings Not Being Saved Support 10
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
Joe Caverly 7zip changes file time Support 7
RChrismon How to? Changes to Options Don't Save Support 8
D v20 code page behavior changes Support 2
P Why won't my changes to Options take? Support 5
Alpengreis WAD Each start/close of TCMD changes my Explorer setting Support 7
Charles Dye Re: Feedback Forum Changes Support 9
rconn News Feedback Forum Changes Support 0
David McClelland How to? Path Changes Support 4
vefatica WAD Escaping changes case to lower? Support 12
Joe Caverly New Tab In TCMD Changes TCC Window Size Support 1
BobK "do you want to allow the following program to make changes to this computer" Support 3
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
D Automatic directory changes don't work at all Support 4
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
D Copy to clip changes character Support 24
Charles Dye Changes in 13.01 Support 1
Joe Caverly Saving SMTP Changes in TCC13 Support 5
fpefpe Color changes Support 1
Y 12.1 changes Support 1
krischik Button changes not saved Support 5
C Attaching PowerShell changes its colors and makes it hard to read Support 15
J Disable Automatic Directory Changes? Support 6
P Copying descript.ion file fails Support 8
rps Documentation Help file revision - Copying hidden DESCRIPT.ION files Support 19
S Copying descriptions in DESCRIPT.ION Support 3
Stefano Piccardi how to copy descript.ion to *-backup.* ? Support 4
G V12.11.76 DESCRIPT.ION Oddities Support 3
S DEL on FTP site : complaint about missing DESCRIPT.ION Support 1
R FILES.BBS instead of DESCRIPT.ION Support 13
w_krieger DESCRIPT.ION Support 0
Charles Dye Difficulty copying DESCRIPT.ION files Support 1

Similar threads