Help running an application when a file is added to a folder


  1. Posts : 16
    Windows 7 Ultimate 32bit
       #1

    I need some help getting a .bat file to run when a file is added to a folder.. E.G When a file is downloaded to the downloads folder the .bat file runs and is moved to a separate location.
    Last edited by Acerbun; 26 Dec 2021 at 05:41.
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Acerbun said:
    I need some help getting a .bat file to run when a file is added to a folder.. E.G When a file is downloaded to the downloads folder the .bat file runs and is moved to a separate location.
    Code:
    :start
    if exist "%USERPROFILE%\Downloads\*.*" move /y "%USERPROFILE%\Downloads\*.*" "%USERPROFILE%\desktop\"
    ping 127.0.0.1 -n 20
    goto start
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:01.
Find Us