
Create a new .wav file from an exisitng .wav file
Mon, 10 Feb 2003 12:24:27 :-
Quote:
>I'm trying to write a small script that will allow me to create a new wav
>file by copying/renaming an existing wav file based on the date.
>Basically, I have several wav files recorded each saying a specific portion
>of a date. For instance, monday.wav simply says "Monday". april.wav says
>"April", and so on.
>So, based on the computer's date, I want to use these existing wav files to
>create 3 new wav files: CurrentDay.wav, CurrentMonth.wav, and
>CurrentNumber.wav.
>I could then put them into a subroutine I already have that will "speak the
>date" correctly all the time... "Today is Monday, February 10th".
Assuming that you boot each day, put a batch file call in autoexec.bat;
or schedule a call for 0000h each day.
NOWMINUS F1 L4 Eyear L2 B6 Emonth B9 Edate F5 Edow
will (today) put in the Environment YEAR=2003 MONTH=02 DATE=10 DOW=01 ;
and
NOWMINUS F256 L3 Edow B9 Emonth L2 B6 Edate L4 B13 Eyear
will set DOW=Mon MONTH=Feb DATE=10 YEAR=2003 : it is then easy to copy
files of corresponding names, e.g. copy %dow%.* CurrDoW.*
NOWMINUS (etc.) via sig line 3 below.
If you have privileges enough in your jscript to write a batch file, you
can write a corresponding set of copy statements; if you have privileges
to copy files directly, then A = new Date().toString().split(" ") and
use the parts.
--
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>.
Do not Mail News to me. Before a reply, quote with ">" or "> " (SoRFC1036)