Recent content by Christian Albaret

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  1. C

    Version 20.11 installed on Windows 10 problems

    I have a similar situation: I install TCMD with an administrator account and run it from a non-administrator account. Rather than changing the security of the "C:\Program Files\JPSoft\TCMD22\" directory, I remove (as administrator) TCMD.INI from that directory. Then I run TCMD (as...
  2. C

    opposite of differ?

    If you want to see the result graphically you can pipe a DIR of each directory to a file, and compare both files with a graphical difference tool (I use WinMerge for example). If you want to see the result in the console, a command such as for %f in (a\*) if exist b\%@name[%f] echo %@name[%f]...
  3. C

    ZIP/U compares wrong timestamp

    ZIP now compares UTC times, which don't vary with DST. I notice a 1h offset for files in the user-profile, but this seems to be handled correctly with UTC times too. The last quirk I can see is that some files are extracted by UNZIP although the times look identical (when comparing ZIP/V and DIR...
  4. C

    ZIP/U compares wrong timestamp

    I tested on TCC 22.00.29 x64 Windows 7 [Version 6.1.7601]. ZIP/U seems to correctly select the files based on their timestamp. The timestamp (as seen with ZIP/V) in some cases shows identical to DIR and in some cases still shows offset by 1h (files in a directory in the C:\Users\… Windows...
  5. C

    ZIP/U compares wrong timestamp

    I wasn't aware of this fact. This makes the /U and /F options virtually unusable (unless there would be some way to shift the timestamps). As said, ZIP did not shift the timestamps in V19. I will work with /A:A and then reset the Archive attribute (there is no /X option as for COPY) (I call ZIP...
  6. C

    ZIP/U compares wrong timestamp

    ZIP offsets the internal timestamp of the file it stores (since TCMD V20) (looks like time-zone handling). ZIP/U seems to compare the timestamps without accounting for the time offset; it keeps adding the file even if the timestamp did not change. > touch/c asd 2017-11-28 14:50:39.695...
  7. C

    Documentation touch and /r

  8. C

    How to? copy / exclude

    Look for "Exclusion Ranges" in the help.
  9. C

    Nested IF syntax — TCC behaving differently to CMD

    Thanks for the change. I agree the syntax is awful. I have "Duplicate CMD bugs" enabled — but I seldom bump into the category of problems this check addresses (my own scripts are obviously written in clear TCC syntax), and I didn't make the connection.
  10. C

    Nested IF syntax — TCC behaving differently to CMD

    The following code comes from "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd", a Microsoft SDK batch file. IF "x%TARGET_CPU%x"=="xx" ( IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" SET "TARGET_CPU=x86" & SET "CURRENT_CPU=x86" IF /I "%PROCESSOR_ARCHITEW6432%"=="x86" SET "TARGET_CPU=x86"...
  11. C

    Error 0xc0000142 and FAR Manager

    I don't use FAR and thus don't know directly. Since FAR is widely used, it should be configurable in some way. Looking at, I see "greatly extended by external DLL modules — plugins" (though writing a DLL is probably overkill just for passing a command from CMD to TCMD) (it...
  12. C

    Error 0xc0000142 and FAR Manager

    One trick could be to have FAR spawn CMD, and have CMD call TCC — but you would have to somehow change the command issued by FAR.
  13. C

    TCMD not hiding the console

    Normally TCMD is hiding the consoles, one only sees TCMD's tabs. With very text intensive tasks, TCMD can loose some control; the consoles show and even pop up regularly. (My case is a task for compiling: PERL spawning MAKE (actually ClearCase's clearmake), which spawns TCC, which spawns PERL...
  14. C

    Error 0xc0000142 and FAR Manager

    If you don't need TCC's features, you can change FAR's COMSPEC to point to CMD (through a batch file with SETLOCAL + SET + FAR, batch file itself called from an alias or from a shortcut). I use this technique for a few programs. Not applicable if you want TCC's features when executing from FAR.
  15. C

    FFIND wordA AND wordB

    AWK (or PERL, my tool of choice) are considerably faster for heavy text processing. In Perl, a basic script would look like this [untested]: my $fn = $ARGV[0] ; open my $fh, "<", $fn or die $!; local $/; # enable localized slurp mode my $content = <$fh>; if ( $content =~ m/WordA/ && $content...