All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

phil / Copy settings files

0 likes
0 forks
1 files
Last active 5 days ago
Finds all configuration files within Program Files and x86 Program Files
1 <#
2 .SYNOPSIS
3 Scans Program Files directories on a source drive for critical config/license files
4 and mirrors them to a backup location using Robocopy, preserving directory structure.
5
6 .DESCRIPTION
7 1. Scans "Program Files" and "Program Files (x86)" on the source drive.
8 2. Looks for specific extensions (.ini, .lic, .db, etc.).
9 3. Calculates the destination path by swapping the drive root.
10 4. Uses Robocopy to copy the file (and its attributes/timestamps).

phil / test.txt

0 likes
0 forks
1 files
Last active 6 days ago
1 file
2 stuff
Newer Older

Powered by Opengist ⋅ Load: 57ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文