资讯

Add the pause command to the end of the batch file, then trigger it to run.<BR><BR>BTW, you're not referencing any mapped drives in either the batch file or the HotCopy script, are you? They won't ...
If you wish to elevate & always run a Batch file as administrator in Windows 11/10, follow the procedure laid down in this post. You can run Batch file as Administrator without a prompt.
You can stop or prevent Command Prompt from closing immediately after opening or executing a batch file using Pause, cmd /k or editing Registry.
How to run app as administrator from Run To start a program as an admin user from the Run command, use these steps: Open Start. Search for Run and click the top result to open the app.