- @echo off
- cls
- echo Checking for changes in the folder %1%
- setlocal enabledelayedexpansion
- set firsttime=0
- :start
- cd c:\
- dir %1% > temp
- for %%R in (c:\temp) do (
- echo %%~zR > size
- if not %%~zR == !currentline! (
- if %firsttime%==1 (
- type c:\sound
- type c:\sound
- type c:\sound
- )
- )
- set firsttime=1
- for /f %%a in (c:\size) do (
- set currentline=%%a
- )
- )
- rem
- goto start
b
Posted on April 10, 2010, 9:08 pm UTC anonymously (about 1 year ago)Code (highlighted for Text)