Skip to content

Run tasks against multiple directories with a single command.

License

Notifications You must be signed in to change notification settings

slalFe/MirrorTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MirrorTask v1

Run tasks against multiple directories with a single command.

E.g. dotnet run -p .\src\MirrorTask\MirrorTask.csproj filerunner --f Eureka.bat "Hello World.bat"

By default the list of directories is expected to be stored in: C:\Projects\MirrorTask\FileStorage\DefaultDirectories.txt

Simply put in the absolute paths of all the directories you want to search through when running tasks separated by a new line. There is no need to add quotation marks in this file to handle spaces as they are added automatically. If a directory is not found it will silently move onto the next directory.

If you want to change the name of the directory or file containing the list of directories then simply modify the FileStorageDirectory and DefaultDirectoriesFileName properties in ApplicationSettings.cs.

Common options

includesubdirectories

By default the application will only search the top level directory when trying to run the task. If you want to include subdirectories add this argument.

Long Name: --includesubdirectories

Short Name: -d

Tasks

filerunner

Acccepts a list of space separated file names, including their extensions, that if found in one of the directories should be executed. If a file is not found it will silently move onto the next file. If the file name includes spaces you will need to wrap it in quotation marks.

Options

Long name: --files

Short name: -f

About

Run tasks against multiple directories with a single command.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published