VB Script/WSH/Progammer ... Help!!
Got a request for you guru out there.
Situation: I need to export (or save) the body text of email(s) in a specified folder to one text file located somewhere on the network. The catch is I need to do this in a script that can be scheduled as a task to be perform on a daily basis.
Current resolution: I have currently a VB program to do this, but it requires that I'm logged on before the GUI will work.
What I'm thinking is, I can first initally setup my Outlook profile to create the necessary reg keys that I will need for the script to identify what profile it needs to extract the text from. I'm also thinking of either using CDO or COM objects to accomplish this.
If anyone could point me to the right direction to do this, I would appreciate it.
thanks,
Situation: I need to export (or save) the body text of email(s) in a specified folder to one text file located somewhere on the network. The catch is I need to do this in a script that can be scheduled as a task to be perform on a daily basis.
Current resolution: I have currently a VB program to do this, but it requires that I'm logged on before the GUI will work.
What I'm thinking is, I can first initally setup my Outlook profile to create the necessary reg keys that I will need for the script to identify what profile it needs to extract the text from. I'm also thinking of either using CDO or COM objects to accomplish this.
If anyone could point me to the right direction to do this, I would appreciate it.
thanks,
If the emails you want to extract are in Outlook,
vbscript has a "outlook" library. you should be able to extract al you need using this library.
its "Outlook.Application" , so create an object using that library, and you should be able to access email text....hopefully
Check web for examples....
the VB program, if you have the source code, could probably be easily modified so it wouldnt need the GUI.
vbscript has a "outlook" library. you should be able to extract al you need using this library.
its "Outlook.Application" , so create an object using that library, and you should be able to access email text....hopefully

Check web for examples....
the VB program, if you have the source code, could probably be easily modified so it wouldnt need the GUI.
Trending Topics
Rewrite the exe to run without a GUI. Don't make any controls or require run-time input, and use command-line args or a text file for any input you need. Run it as a scheduled system task, and that should be that.
There are several ways to do this. If you already have the whole thing worked out, just remove the GUI references in your exe. I'm sure there is something more to do - like a compiler command, so I am gonna play with it right now.
There are several ways to do this. If you already have the whole thing worked out, just remove the GUI references in your exe. I'm sure there is something more to do - like a compiler command, so I am gonna play with it right now.
Originally posted by cyber_x
QT_S2K,
Out of curiosity, is this something that needs to run before an user has logged in to Windows?
QT_S2K,
Out of curiosity, is this something that needs to run before an user has logged in to Windows?
But, I would prefer this to be a scheduled task with a login id that the script knows to export the emails from. OR I can put this in as a GPO startup script/startup folder and all I have to do then is just login. But, I'm trying to do all of this automatically, so that when I get into work the report is done.


