I have created a web service to send emails with attachments. The attachment location is passed via a string called “StrAttachment”. I can pass the actual location of the folder, but this service will run everytime a sale is made to email documents to a client. The location of the folder will always be “C:”, but a new folder will be created everyday named by the date, for eg : 20121018. So I need to pass that name to the StrAttachment parameter, so my web service knows which folder to look in.
Any ideas?
You can set your parameter using DateTime.ToString() and specifying the format: