GithubHelp home page GithubHelp logo

jamsgrove / simple-network-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noxsios/simple-network-template

0.0 1.0 0.0 5 KB

PowerShell Script to quickly and easily generate multiple config files from a single template.

PowerShell 97.12% Batchfile 2.88%

simple-network-template's Introduction

How to Use this Templating Program

First, clone this repo with git clone https://github.com/Noxsios/Simple-Network-Template.git

  1. Create a template config file

    a. Encapsulate the data you want to replace in double square brackets, [[LIKE SO]], a sample template is provided : template_sample.txt

  2. Create a variables.csv file in the same folder as your template file.

It must be called variables.csv

The A1 entry must be WORD, view variables.csv for an example

  1. Take that same placeholder name, and without the square brackets place it in Column A of the csv spreadsheet.

    a. Immediately to the right of that, in Column B, type what to replace that value with.

    b. Use Columns C+ for different variants of the information from Column B.

    b. To reiterate, the value(s) in Column B+ will replace the value of Column A in the final config file(s).

  2. Double Click to run the engine.bat file

If nothing happens, right click on dragndrop_template.ps1, and respond A for [YES TO ALL] to the execution policy popup.

If the script is blocked due to downloading from a web source,

  1. Drag and Drop your template text file into the empty window, then click START.

  2. Your new file(s) with name ending in _config and your Column Headers will be generated in your config template's folder.

  3. To make more copies, copy the values in Column B into Columns C+ and rerun.

The data in Row 1 of each Column (the Column Header) is added to the end of the generated config file,

So make sure you have a name for each column aside from the first, otherwise the script will fail

  1. To overwrite your changes, simply rerun with different values in your variables.csv.

simple-network-template's People

Contributors

noxsios avatar

Watchers

 avatar

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.