{"id":26370160,"url":"https://github.com/bishal0602/plug-n-copy","last_synced_at":"2025-03-16T23:18:11.362Z","repository":{"id":184877647,"uuid":"648754635","full_name":"bishal0602/plug-n-copy","owner":"bishal0602","description":"Powershell script that automatically detects and copies files from a USB when plugged in","archived":false,"fork":false,"pushed_at":"2023-11-13T15:52:10.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-29T11:37:38.231Z","etag":null,"topics":["cim","common-information-model","powershell","usb"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/Plug-n-Copy/1.0.1","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bishal0602.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-02T18:18:12.000Z","updated_at":"2023-11-13T15:56:49.000Z","dependencies_parsed_at":"2023-12-12T23:10:55.121Z","dependency_job_id":"aaaecf68-a878-4c8e-8458-99b018615bc3","html_url":"https://github.com/bishal0602/plug-n-copy","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"0d26b793a9471264270b5af2b53246bfdbd7a4b3"},"previous_names":["bishal0602/plug-n-copy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bishal0602%2Fplug-n-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bishal0602%2Fplug-n-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bishal0602%2Fplug-n-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bishal0602%2Fplug-n-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bishal0602","download_url":"https://codeload.github.com/bishal0602/plug-n-copy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945567,"owners_count":20372897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cim","common-information-model","powershell","usb"],"created_at":"2025-03-16T23:18:10.874Z","updated_at":"2025-03-16T23:18:11.346Z","avatar_url":"https://github.com/bishal0602.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plug-n-Copy\n\nPlug-n-Copy allows you to secretly copy files from a USB drive to a destination folder when it's plugged in.\n\n---\n\n## Project Structure\n\n```\nPlug-n-Copy\n├── Scripts\n├   ├── Register-PlugNCopy.ps1\n├   ├── Unregister-PlugNCopy.ps1\n├── Plug-n-Copy.psd1\n├── Plug-n-Copy.psm1\n├── README.md\n```\n\n---\n\n## Usage\n\n1. **Install the Plug-n-Copy module from Powershell Gallery** by running the following command:\n\n```powershell\nInstall-Module -Name \"Plug-n-Copy\"\n```\n\n2. **Register USB monitoring and file copying**:\n\n```powershell\nRegister-PlugNCopy -Destination \"C:\\Destination\"\n```\n\nThe `-Destination` parameter specifies the destination folder where the files will be copied. The `-ShowMessage` switch can be used to display the file copied message on the terminal.\n\n3. **Plug in a USB drive.** The module will detect the connection and copy the files to the specified destination folder.\n\n4. When you're done, **unregister USB monitoring** and clean up variables:\n\n```powershell\nUnregister-PlugNCopy\n```\n\nEnjoy using Plug-n-Copy!\n\n## Additional Details\n\nFor more details on the parameters and usage, run:\n\n```powershell\nGet-Help Register-PlugNCopy -Detailed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbishal0602%2Fplug-n-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbishal0602%2Fplug-n-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbishal0602%2Fplug-n-copy/lists"}