Giter VIP home page Giter VIP logo

sherbeeny / windowscopyautoresume Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

This repository contains a PowerShell script designed to automatically detect and handle "1 Interrupted Action" error dialogs that appear during file copy operations on Windows. The script will activate the error dialog and send the "Enter" key to press the "Try Again" button, ensuring the copy operation continues without manual intervention.

PowerShell 100.00%
automation copying files transfer-files windows

windowscopyautoresume's Introduction

WindowsCopyAutoResume

Auto Resume/Retry Copy Script

This repository contains a PowerShell script designed to automatically detect and handle "1 Interrupted Action" error dialogs that appear during file copy operations on Windows. The script will activate the error dialog and send the "Enter" key to press the "Try Again" button, ensuring the copy operation continues without manual intervention.

Features

  • Automatically detects "1 Interrupted Action" dialogs during file copy operations.
  • Activates the dialog window and simulates the "Enter" key press to click the "Try Again" button.
  • Runs in the background, checking for error dialogs every 5 seconds.
  • Provides console output to indicate when dialogs are detected and actions are taken.

Prerequisites

  • Windows operating system (Windows 10/11 recommended).
  • PowerShell (installed by default on most Windows systems).

Usage

  1. Download the Script: Clone this repository or download the TryAgain.ps1 script to your local machine.

  2. Run the Script: Right-click the TryAgain.ps1 file and select "Run with PowerShell".

  3. Monitor the Output: The script will provide console output indicating whether the error dialog is detected and if the "Enter" key is sent to click the "Try Again" button.

Script Details

The script utilizes Windows API calls to interact with the "1 Interrupted Action" error dialog:

  • FindWindow: Locates the error dialog window by its title.
  • SetForegroundWindow: Brings the error dialog window to the foreground.
  • SendKeys.SendWait: Simulates the "Enter" key press to activate the default button (i.e., "Try Again").

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.

License

This project is licensed under the MIT License.


Disclaimer: This script is provided as-is without any warranties. Use it at your own risk.

windowscopyautoresume's People

Contributors

sherbeeny 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.