Coder Social home page Coder Social logo

Deleting main folder option? about choeazycopy HOT 14 OPEN

cinchoo avatar cinchoo commented on July 23, 2024
Deleting main folder option?

from choeazycopy.

Comments (14)

Cinchoo avatar Cinchoo commented on July 23, 2024

Robocopy only offers those 2 options

/mov Moves files, and deletes them from the source after they are copied.
/move Moves files and directories, and deletes them from the source after they are copied.

If your req not fall into these categories, you can add your custom scripts in Postcommands

image

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

@Cinchoo : What commands would I use to prevent the deletion of the main folder but delete everything else inside that folder?

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

you can use

del /S C:\Path\to\directory\*

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

@Cinchoo : Is there a way I can automate the directory instead of having to put it in every time I want to keep the main folder from being deleted? Thanks!

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

Afraid not.

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

@Cinchoo : is there a way to pass parameters to your program with another program?

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

No. Can u brief how are you planning automate?

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

Well I was just gonna pass the line you showed me above into EazyCopy with my own program in order to automate which main directory needs to be preserved.. But truth be told, this would be much easier if I could just automate choosing whether or not EazyCopy deletes my main directory along WITH all folders & files contained within it.

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

Well, in this case you can run the delete folder command from your program right after robocopy completes its operation.

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

Who else thinks this should be a feature? <3 I LOVE this program & use it EVERY day & only wish to see it grow!

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

Hi, put enhancement to the tool to pre and post commands parametrizable with src / dest directories using {{SRC_DIR}} / {{DEST_DIR}} tokens respectively. Let me know this helps.

from choeazycopy.

Thundros avatar Thundros commented on July 23, 2024

@Cinchoo How do I activate this option? Thank you!

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

this is how you can use these tokens in pre/post commands

del /S {{SRC_DIR}}/*

from choeazycopy.

Cinchoo avatar Cinchoo commented on July 23, 2024

Here is the screenshot how to do it

image

from choeazycopy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.