Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by kafka

  1. K

    robocopy cancelling batch file processing

    What do you mean by ROBOCOPY is sending Ctrl-C / Ctrl-Break?
  2. K

    robocopy cancelling batch file processing

    My batch file already had "on break goto ..." statements before invoking ROBOCOPY and "on break" statements after (including in the destination of the "on break goto ..."), shouldn't that have handled ROBOCOPY sending a Ctrl-C / Ctrl-Break? About 30 days ago, I modified my batch file to wrap...
  3. K

    robocopy cancelling batch file processing

    Has anyone noticed that that ROBOCOPY is unusual in that it modifies the window title. I have not found any other external program that modify the window title. I have continued to periodically debug this problem and have determined that it only happens when returning from a subroutine that...
  4. K

    robocopy cancelling batch file processing

    I have a set of (.BTM) batch files that I use to update offline copies of my working directories that use the robocopy program. The top level batch files call a common batch file to perform the work in a uniform way. I have noticed that occasionally batch processing terminates prematurely. I...
  5. K

    copy /w slow relative to robocopy /mir

    I keep offline copies of my working directories on external USB 3.0 drives. Over the years I have developed batch files to update these copies using both RoboCopy and TCC's copy command. I have noticed that the built in copy command (copy /w ...) is about 10 times slower than robocopy (robocopy...
  6. K

    "copy /z /w" command not deleting read-only files in destination

    Interesting, I've been using ROBOCOPY since Window XP when I first wrote a batch file to handle all of the common options. The batch file had two work arounds because of issues with ROBOCOPY. 1) The Windows 7 version had a bug that caused a destination directory to be marked as hidden/system if...
  7. K

    "copy /z /w" command not deleting read-only files in destination

    I found to handle hidden and system files with robocopy requires two passes, the first for normal files (no /IA: option) and the second for the hidden/system files (with a /IA:SH option).
  8. K

    "copy /z /w" command not deleting read-only files in destination

    Another flag would be fine. I'd just like to point out that the current implementation does output a message that it is deleting the existing read-only files.
  9. K

    "copy /z /w" command not deleting read-only files in destination

    SYNC can't do a one way sync which is what I'm trying to perform.
  10. K

    "copy /z /w" command not deleting read-only files in destination

    Given two directories "C:\T" (the source/working directory) and "G:\T" (the destination/backup directory). Executing: copy /z /w /u /y c:\t g:\t What happens to read-only files in the destination depends upon if the corresponding file exists in the source director. If the corresponding file...
  11. K

    copy changing destination current directory

    While testing the parameters for a copy command, I encountered an issue. Given the current directories and contents: "C:\T" which contains several files, "G:\T" which is currently empty. Execute the command: copy /h /z /l /uf /s /ne /w c: g: After the files are copied, the current directory...
  12. K

    CMD, TCC, VisualStudio 2017, VcVars* differences

    I am setting up a new laptop at a new job and encountered a discrepancy between CMD and TCC. The attached 7z file contains dumps of the environment variables before and after running vcvars32.bat. The environment variables that have different values are: FrameworkDir, INCLUDE, LIB...
  13. K

    copy ftp: with /w problem

    I expect and want it to delete files from the target that don't exist on the source. The help does not indicate that /u and /w are exclusive, nor do their descriptions conflict. I want to "Copy each source file only if it is newer than a matching destination file or if a matching destination...
  14. K

    copy ftp: with /w problem

    I seem to have discovered a problem with the copy /w switch when the source is an ftp: path. I am trying to synchronize a local copy of a directory structure from a Western Digital NAS (ShareSpace model WDA4NC2000). Up until version 11 came out I used a command like: copy ftp:/MSCR...
Back
Top