Way to run batch/CMD file on file create?

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
 
W

Walter Schulz

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
 
P

Peter A. Schott

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top