want to give txt file as input from list of txt files daily

October 5, 2012 at 03:21:25
Specs: Windows 2008
want to give txt file as input from list of txt files daily basis that means daily i need to run a perl script everyday it should take differnt txt file as input. for example consider 10 files in input need to run first file on first day second file on second day again first file on 11th day

See More: want to give txt file as input from list of txt files daily

Report •


#1
October 6, 2012 at 18:44:27
::====== begin
@echo off & setlocal
set /p last=<lastrun
set /a last=(last+1)"%%"10
:: put the actual command here. not aquainted with Perl syntax
perl perlscript -input=perlin%last%
>lastrun echo %last%
::==== end script
disclaimers etc: this only works if it runs every day. If you skip a day, it will still
run the file that should have been run the day before. use task-sched to avoid this.
You will need to put the 10 textfiles into names with 0-9. f/e: file for day 1 would be like perlin0. File for day 10 would be like perlin9.
This is lame, but best I can do with what you gave and what I got.

Report •
Related Solutions


Ask Question