Way to run batch/CMD file on file create?

  • Thread starter Thread starter Peter A. Schott
  • Start date Start date
P

Peter A. Schott

Per subject... Anyone know a way to run a program when a file is created in a
directory? I know that there are programs that can handle this but was
wondering if this is built-in to Win2K/Win2K3. I'm trying to set up a job
that will automatically decrypt any files that are placed in that directory
with the name changing often. From what I've seen, wildcards probably won't
work.

Any programs that can do this? Any suggestions?

Thanks in advance,

-Pete Schott
 
Per subject... Anyone know a way to run a program when a file is created in a
directory?

:endless
FOR /R C:\example %%a in (*.*) do move %%a c:\dump
sleep 2
Goto :endless

Ciao, Walter
 
I'll have to give it a try. I've still got one or two other kinks to work out
first. I've got to find a book on this stuff to catch up on the parts that
I've never messed with before.

-Pete
 
Back
Top