HKFuey
asked on
Create text file vbs
Our Accounts package has some basic vb scripting functionality.
I have created a function that works when a purchase receipt is posted, it emails users if a parameter is true.
I only want to send one message per order so I thought I would create a text file in C:\Temp.
e.g 'Ordernumber.txt'. On subsequent receipts I can check if the file exists to prevent duplicate emails being sent.
Can anyone help with the syntax?
I have created a function that works when a purchase receipt is posted, it emails users if a parameter is true.
I only want to send one message per order so I thought I would create a text file in C:\Temp.
e.g 'Ordernumber.txt'. On subsequent receipts I can check if the file exists to prevent duplicate emails being sent.
Can anyone help with the syntax?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Needed to move Set fso = CreateObject("Scripting.Fi leSystemOb ject") further up in my code!!
ASKER
Open in new window