How Should I Organize My Script Project Folders?

0
6
Asked By CreativeSparrow42 On

I've been looking into how to properly structure project folders for scripts but haven't found specific guidance that fits my situation. Right now, I maintain a ping script for my team at work, and I'm in the process of updating it, so some parts are a bit unfinished. I want to become a better script writer and need advice on the best practices for organizing my project. Currently, I'm storing my scripts on SharePoint, and users download ZIP files onto their virtual desktops to run them. I'm also hesitant to use GitHub because I'm unsure about the security and sharing rules with my company's information.

4 Answers

Answered By ModuleMaster27 On

You might want to consider putting your input, processing, and output function files into a module. It helps keep everything organized and easier to manage!

CuriousCoder99 -

Interesting! Would that mean I would just include the module in the folder that users download and import it into the main controller script?

Answered By TechieTina88 On

I've been in a similar spot before, and honestly, Powershell might not be the best option for larger projects. I would recommend structuring it around modules for better organization.

FieldTech2023 -

I get that, but right now PowerShell is my only option since it’s native to Windows. Plus, most techs are using virtual desktops with iPads in the field.

Answered By VersioningViking On

Not directly related to your question, but a tip: using a versioning format like YYYYMMDD can be way better for organization compared to just V1, V2, etc. It keeps things sorted nicely.

Answered By DevNerd101 On

Regarding GitHub, don't worry! You can create private repositories to keep your code safe. Consider putting your functions in modules and setting up an internal PowerShell repository to manage them. You could also set up GitHub to release updates for your scripts more easily.

HelpDeskHero -

Oh wow, that sounds fantastic! Thanks a ton for the info!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.