title: Email a folder/file using vbscript
body: <p>Basically i want to email a file inside a folder. The file is dynamically generated after execution of some program.But the problem is how do i attach the dynamically generated file(The name changes continously</p>
  
  <pre><code>Set objOutlook = CreateObject("Outlook.Application")
  Set objMail = objOutlook.CreateItem(0)
  objMail.To = "to@gmail.com"
  objMail.cc = "from@gmail.com"
  objMail.Subject = "Test Mail Subject"
  objMail.Body = "Test mail body"
  objMail.Attachments.Add("path")
  objMail.Send 
  objOutlook.Quit
  Set objMail = Nothing
  Set objOutlook = Nothing
  </code></pre>
  
  <p>i can get the path upto the folder but how can i dyanmically choose to attach anyfile inside the folder.Can i mail the entire folder(by compressing it).If so how.Any help would be appreciated.</p>