Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command prompt parameters #4

Open
Tiesenhausen opened this issue Dec 1, 2016 · 4 comments
Open

command prompt parameters #4

Tiesenhausen opened this issue Dec 1, 2016 · 4 comments

Comments

@Tiesenhausen
Copy link

Would it not be possible to make RED usable in a batch file, perhaps with command line parameters?

@jsytniak
Copy link
Contributor

I've considered this to be a top TO DO on this codebase.

@hxseven
Copy link
Owner

hxseven commented Jan 29, 2021

Thanks for the feedback, I also got a couple of emails regarding command line options so I moved this on top of my to-do list :)

My spontaneous ideas regarding the implementation:

  1. Just a simple /auto flag, searches for empty dirs in the given path and automatically deletes them then exits (?)
    RED2.exe "C:/example-dir" /auto

  2. Flags for different functions
    RED2.exe "C:/example-dir" /find (opens RED and starts searching without deletion)
    RED2.exe "C:/example-dir" /delete (auto deletes?)
    RED2.exe "C:/example-dir" /delete /autoClose (Automatically closes after it's done)

  3. Specific a text / config file that includes options and could contain multiple paths?
    RED2.exe /batchfile batch-config.txt

Options 1 & 2 could also combined with additional flags to override settings like: /fastMode /age 1 /pause 0

Any preference or other ideas on how it could work?

@Tiesenhausen
Copy link
Author

Tiesenhausen commented Jan 29, 2021 via email

@jsytniak
Copy link
Contributor

jsytniak commented Jan 7, 2025

I am considering taking on this enhancement. I've implemented with this library before and it works nicely. I thought I would run it by everyone here first.

https://github.com/commandlineparser/commandline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants