0 of 0

File information

Last updated

Original upload

Created by

MZO

Uploaded by

MZO

Virus scan

Safe to use

Tags for this mod

About this mod

A very simple PowerShell Script that randomly picks a folder from a root folder and copies the content within the picked folder to a specified destination.

Permissions and credits
This simple PowerShell Script allows users to randomly replace the files and subfolders in a specific directory.
I build this script for myself to randomize the PipBoy BackGrounds for Fallout 4. But the use cases for this script are endless and extend beyond Fallout 4 or even gaming.

How to set it up;
(I'm not the best explainer, so a Video Guide is attached)

  • Once you download the script, extract it anywhere you want.
  • There is some setup you need to do, I'll go over that now;
    - Create a folder, call it whatever you want. This folder will be referred to as the ROOT FOLDER;

    - Create subfolders within ROOTFOLDER, the names of these subfolders do
    not matter, just make sure to put the assets you want replaced inside
    each folder, make sure to keep the folder structure intact in each
    subfolder. This script cannot delete files you copied before, this will
    simply copy the assets in the folder it randomly selects and plop them
    in the Destination Folder (Defined Below), and overwrites where needed.

    - Open the script in any text editor of your choice, I'd recommend something like VS Code, or Notepad++

    - At line 10, replace the value of $rootFolder with the path to the ROOT
    FOLDER we made above, Make sure to keep the quotes in the value, do not
    replace/remove the quotes, only the path inside.
    - At line 13, replace the value of $destinationFolder with the path to the DESTINATION
    FOLDER, this is the folder where you want the script to move the assets
    to. Make sure to keep the quotes in the value, do not replace/remove
    the quotes, only the path inside.
  • That is all, you can now save the script, and run it.
  • IF, the script closes as soon as you run it, try running it through a PowerShell Window;
    Launch PowerShell manually through your start menu or whatever else,
    Paste the Code Below, replacing the path inside the Quotes to the path where your Randomization Script is located.

    powershell.exe -NoExit -File "C:\Randomization.ps1"