.bat file - How to start a .bat file when I rename any file in a specific folder
问题 I want my .bat file to run after I rename a file in the Sources folder that is located here: C:\Users\UserName\Videos\Gameplays\HeroesOfTheStorm\Sources\ The .bat file is located in the same Sources folder. How can I do that without double-clicking on the .bat file manually? I want it to run automatically after I rename a file in the Sources folder. 回答1: Set WshShell = WScript.CreateObject("WScript.Shell") Set WMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Set