GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

Robocopy not working. Want to copy tree but create only file names

Home Forums Scripting DOS Command Shell Robocopy not working. Want to copy tree but create only file names

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    amakeler
    Member
    #154943

    Hi all,

    This is my first post. My name is Avraham and I am a technical writer + ex-programmer.

    So here is my first question.

    I would like to duplicate a directory tree, but instead of copying the files themselves, and I want to just create a placeholder for each file, where its filename is the original name. Or another way of looking at it is: I want to copy the file, but without the file data content, so I want a zero-length file.

    So I am using robocopy like this:

    robocopy Tree Tree_NoFnames /create

    however it is not working correctly. It is creating only an empty Tree_NoFnames directory.

    What I am doing wrong?

    TIA

    -avraham

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.