Getting information from a triggerfile.
Posted: Tue Apr 18, 2006 1:27 am
One more newbie easy question:
Monitor folder for triggerfile.. *.go
If found: Rename to .. *.work
Triggerfile is a simple textfile and contains variables.
$sourcedoc = C:\master\input\FODAquote\Master\FODAquote.doc
$destination = C:\test.doc
...
Open $sourcedoc in Word.
Execute word macro within Word.
(The macro is saved in a seperate document.)
If macro succeeds, delete the triggerfile.
If macro fails, rename triggerfile to .. *.bad
Can someone please help me in the right direction. Thanks in advance.
/Michael Christoffersen
Monitor folder for triggerfile.. *.go
If found: Rename to .. *.work
Triggerfile is a simple textfile and contains variables.
$sourcedoc = C:\master\input\FODAquote\Master\FODAquote.doc
$destination = C:\test.doc
...
Open $sourcedoc in Word.
Execute word macro within Word.
(The macro is saved in a seperate document.)
If macro succeeds, delete the triggerfile.
If macro fails, rename triggerfile to .. *.bad
Can someone please help me in the right direction. Thanks in advance.
/Michael Christoffersen