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

Acerbun

New member
Local time
11:05 PM
Messages
16
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:

My Computer My Computer

OS
Windows 7 Ultimate 32bit
CPU
Intel Core 2 Duo E8200 @ 2.66GHz
Motherboard
Intel DG31PR
Memory
2 GB
Graphics Card(s)
Intergrated
Sound Card
Intergrated
Monitor(s) Displays
Acer H223HQ
Screen Resolution
1600x900
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 My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Back
Top