Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How Can I Read An Outlook .msg File That Is Saved On My Hard Disk


Hi

How can i read an outlook msg file that is saved on my system (local drive/network path)

so i could pass the address of file and then read the file ie (subject, email body etc)

i have installed outlook on my system.

Thanks




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Email A File From Hard Disk
Hi,
I want to know that "If I want to make such a project which can email a file from specific path from hard disk to a email address" Could you please help me?

Thanking you
Rummy

How 2 Save Text File Into Hard Disk
    hello guys...i have send already this post to another forums as well..but did`nt get any good result..
  i made 2 texts and 1 button...i wanna save these 2 texts in my hard disk (c:\........) when i press button....

   any good idea how to save texts in to hard disk....

Select A File From Hard Disk And Insert Dir In To A Cell
Hi all, I require a script that will on the click of a button, allow the user to search the drive for a file (a back up xls file) then insert the Drive/Directory/Filename into a cell.
I wish for a screen that looks like the Open file menu, but rather than open the file, just insert its whereabouts into a cell or textbox

Cheers for your help

Reading Txt File With Limited Access To Hard Disk
Hi guys
ive got this program, and it basically reads a couple of lines from a txt file.
however when i take it to work, i have limited access to the C drive.
well actually no access

currently i have set the file path of the txt file within vb to

Code:
Open "data.txt" For Input As #1


for some reason at home the code above will look for a file automatically in this location

C:data.txt

now if i take this to work, i get a debug error, because i dont have access to the C drive there,

so how do i get it to read a file from the same directory as the project code itself?
i though "data.txt" would be correct???
and better yet, is there any way for the program to embed this txt file inside the exe file when compiled? so it doesnt need to read from external files?

Opening And Writing To A Hard Disk File In Vista
I would like to open and write to a small file on the root of the C drive (or whatever hard drive is available). This file will be updated periodically as the VB6 executable is used. I would like to use the root of an available hard drive and not an App directory because I prefer not to install the App onto the hard drive and instead run directly from a CD ROM. Windows XP and earlier Windows releases do not seem to mind.

Will Vista block this procedure? If so, is there any directory on the hard drive that Vista permits writing to besides an installed App directory?

Make Sure File Record Is Write To The Hard Disk
hi.

hi need a monitor to my functions calls in vb app.

i do it to see the last function call when the app crash.
(im debugging...)
the problem is that when i write to file, the records are write to the memory and then write to the HD.

my q is:

how can i write record to file and be sure 100% its in
HARD DISK.
AND THEN IF APP IS CRASH I KNOW THAT ALL THE RECORDS R IN THE HARD DISK.


in short way: is there way to flush buffer to HD AFTER writing record.

thanks and goodbye.

How Can We Rectrict Copy Between Hard Disk And Removable Disk?
Hi All,
I need to restrict copy between hard disk and removable disk e.g Pen Drive, FDD etc.
The basic purpose is to avoid data leakage from the hard drive.

Regards,
Dinesh

Problem Read From A Saved File
Hi, all

By using iNet, i have download the souce code of a website into a rich textbox. And then save the souce code into a text file "index.txt", then i try to read from the index.txt using Line Input #1, strLine, but it seems go through the whole file once.

the codes are:

webcontent.Text = Inet1.OpenURL("www.sina.com")
Call webcontent.SaveFile(STemp_directory + "index.txt", 1)

Open STemp_directory + "index.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, strLine
'do something here to interpret the html codes
....
Loop
Close #1

It supposed to take lots of round to read from the file inside the loop, but it seems read the whole file into strLine once.

Anybody can give me some suggestions? the index.txt is attached

thanks a lot
dejie

Opening Saved .msg File In Outlook
I'm developing an Outlook application using VB6.

How do I go about opening a saved .msg file on the hard drive using the Outlook object?

Any code snippet would be appreciated.

Copy Saved Outlook Attachment File To Inbox Using Vba
I use the following code to save an attachment (specifically a mail message which has been forwarded as an attachment) from an outlook message to my hard drive:


Code:
With olMailItem.Attachments
R = .Count
If R > 0 Then
For AtchCnt = 1 To R
If Right(olMailItem.Attachments(AtchCnt).Filename, 4) = ".msg" Then
CurFile = "C:" & mct & " " & olMailItem.Attachments(AtchCnt).Filename
.Item(AtchCnt).SaveAsFile CurFile
Mct = Mct + 1
End If
Next AtchCnt
End If
End With

I then use the following code to return the attachment to Outlook as a message:

Code:
Sub Copy()

Dim olApp As Outlook.Application
Dim docFile As Object
Set olApp = CreateObject("Outlook.Application")
Dim Msg
On Error Resume Next

Set docFile = olApp.CopyFile("C: est.msg", "InboxCopied")

' Check for error, then show message.
If Err.Number <> 0 Then
Msg = "Error # " & Str(Err.Number) & " was generated by " _
& Err.Source & Chr(13) & Err.Description
MsgBox Msg, , "Error", Err.HelpFile, Err.HelpContext
End If

End Sub

When I open the copied message in Outlook and select "file - properties" it shows a location of "Microsoft Outlook Embedded Message".

If I drag the file directly from my hdd to the Outlook folder, opening "file - properties" shows a location of "Copied" (ie, the folder name).

The code I use to extract data from mail messages works properly with the item if it has been dragged and dropped into Outlook, but not if it has been copied using VBA.

How can I either get the same effect programmatically that I do by dragging and dropping the file; OR

How can I make Outlook see it as a normal message rather than as an embedded item?

I have already spent a great deal of time browsing this forum and MSDN, so if the solution is there and I've just been missing it I would appreciate being pointed toward the correct thread or topic.

Hard Disk SN
how to get my "C:" (Primary Hard-Disk) Serial Number ?

Hard Disk ID
Can I read the ID of my Hard Disk from vb code ?

If anyone know, plz help me.


Rajib

ID Of Hard Disk
How can I get my Hard Disk ID/SerialNo from my vb code ?

If anyone know, plz help me .

Rajib

Hard Disk RPM
Can any body guide me how to know RPM of hard disk by using vb code. :mike:

Hard Disk
I want to only allow certain users to use my program. I want to do this by only allowing certain hard disk serial numbers to access it. Is there any way to do this so that i dont have to send everyone a new copy every time i add a number? Possibly I could have it access a web page and sort through the numbers?

Take Something From One's Hard Disk
Is there any way to get some thing from one's hard disk who are online?

???

Rummy

Hard Disk?
Hi,

How can I detect the amount of Physical hard disks in the PC using VB?

Hard Disk Space
i found the code to show the spacew on the disk but its on bytes and i want it to mb.how i change this line to show me mb?
Me.Print " Total Number Of Bytes:", Format$(TotalBytes * 10000, "###,###,###,##0") & " bytes"

Search Hard Disk
I want to make a search and i want to wrote on the label what folder and what file does it search.How to do that?

Hard Disk Monitoring
Hi!
I got my CPU under my desk so for me its impossible to see if the led that indicates if the hard drive is working (reading and writing) so I want to create an app to show in the system tray whenever the disk is working (reading/writing). I saw some apps for this, hard disk led and diskmon, but I want to make my own since hdl is shareware and diskmon has features I will not use but I dont know where to find an example of how do they monitor the hard disk.
Can anyone help my with this?
Tnx!!

Searching Through The Hard Disk
hi to all!
i want build an application that search the hard disk like windows' search engine, and find files that has same size or same filename.
it's possilbe???


thanks :d

Treeview And Hard Disk
Hi to all, I'd like popular a treeview control with the dates of all my hard disk. Making this i have meet some problems:

1) How can i recover the content of all my harddisk (with icon) and put it in my treeview control?!

Thanks....

Hard Disk Monitor
I need to monitor my hard drive activity, I need an app to notify whenever the HD is reading or writing, I know it can be done but I dont know where to start.
Does anyone has a clue?
Tnx!

Hard Disk Information
hi

i want to know if is there a way reading peripherals information/hard disk information (such as model/brand, serial no) using vb, thanks

Check If Hard Disk In Use?
Hi all

Very new to VB (using 6) but need to write a little prog which replicates the hard drive activity LED's - in the systray. Ideally, I want one indicator for each local and remote drive - and each will flash away when its corresponding disk is being written to / read from.

First of all.. is it possible to do this with VB? And secondly.. if so.. would apprecitate it if anybody could set me off in the right direction.

Many thanks and regards

Finding Key Value Of The Hard Disk
hi all
can any one u have a code
please so we can find the Key value of the hard disk...
thanks

Writing To Hard Disk Every 1 Sec.
I have a data acquisition program that takes in data from the com port and then gives the user the option of saving this data in real time

right now i take in the data and write it to the hard drive once per second.

Can you guys see any problems with this?

Should i store the data in a string and then once all the data the user wants is in it THEN write to the hard drive??

Im worried about the amount of data that would have to be stored in the string and that it might cause memory problems.

Currently I write about 30 characters per second

So an hours worth of data will be around 108000 characters.

Any suggestions???

thanks all

Reading Hard Disk ID
i wanted to capture hard disk id in the variable how to capture it or read it

Hard Disk Partioning
i want to make a hard disk tool...which can del create hide n format a partition...n i dnf even knw where to begin...n is VB strong enough to do this?

Search The Hard Disk
Is there any way of searching my hard disk for a file(or at least a folder)?

Thanks

Searching The Hard Disk
Is there any way of searching my hard disk(or a specific folder) to see if there is specific file in that folder?Is there any way of changing the properties of a file(hidden,read-only)of a file?

Thanks

Get The Hard Disk Label
Hi VBers

How do you get the hard disk label through vb?

Thanx in advance,
Clint

Hard Disk Number
hey there, is there any code in Vb that i can use to tell me the number (serial number) of the hard disk im working on? any help is appreciated!thank you

Turning Off Hard Disk
Is there an API or anything which will let me turn off the hard disks. I've got 6 machines with 2 HDD in each and all in one room and it is fricken noisy. I'm about 5 or 6 rooms away and I can still hear it (faintly). The HDD all turn off after 15 minutes, but is there a way to turn them off, *, just like that?

Hard Disk Communication
I know this will seem strange, but I want to know if there is any way to directly communicate with the IDE controller on a hard disk, say, to get that disk's parameters. I work on many systems and a nice small utility to get technical information from a hard disk would be very helpful.

Hard Disk Size
How get Hard Disk Size?
I am using an API, but the Hard Disk size don't be right.
tks

How To Get Hard Disk Information From Vb6
hi to ALL
    I want to use the Hard disk Information like serial no., free space, used space, No. of partitions, Etc.

   How I can get this information using my vb6 application?

Hard Disk S.M.A.R.T Status
Hi

Does anyone know how to check a hard drives SMART status from VB6?

Any help is appreciated

Hard Disk Code
Hi Friend

    I need to have hard disk serial number. Is this possible in vb? If yes then how?

Thanks in advance
Manish Gupta

Hard Disk Manufacturer Name
Hello Guru's

How to retrieve the Hard Disk Manufacturer name

programmatically in MFC.

e.g : Ceagate , Samsung etc


Thanks,

Hard Disk Space
Can anyone pls tell me how to find out all the hard disk installed in the PC

( c:, d: , e

and how to find their sizess....

Pls Help me out
thank u

Hard Disk Info
I would like to known how I can found all hard disk on a machine, for every one I search : - the global capacity
- all infos

How To Sanitize A Hard Disk?
I'm looking for a bit of help with some code that would permanently erase(sanitize) all data from a hard drive. I work at a medical facility that is replacing PC, and I need a way to wipe all data, and make the info irretrievable.

These PC's are being donated and want to make sure they are HIPPA clean

Thanks!!!

Hard Disk Space
how can i use vb 6 to find balance hard drive space on not only local drives but also network drives ? thanks

Amu

Copy Column U To Hard Disk
I have a folder with 600 photos and an Excel control program which will allow the user to create a list of photos per his specs in order to run a slideshow. here is one such list (starting at U5):

12.tif
268.tif
269.tif
283.tif
287.tif
289.tif
290.tif
349.tif
496.tif
499.tif
513.tif
518.tif
536.tif
538.tif
543.tif

U5 contains the first item and "LastAddr" contains the last address :U19 in this case.
The purpose of this is to create a file on HD named C:FotoList.txt
looking exactly like this. Said list to be loaded by Irfanview slide show. The way I am doing it now apparently contains some of the Excel cell formatting (unprintable) and it will not work:

LastAddr = "U" & y + 3 'Last row used (from prev code not shown)
'This coding copies from (U5 to LastAddr) to hard disk.
Dim of_1 As Integer
Dim strSaveToPath As String
Dim vntRngToSave As Variant

vntRngToSave = Range("U5:" & LastAddr)
strSaveToPath = Application.GetSaveAsFilename

of_1 = FreeFile
Open strSaveToPath For Binary As #of_1
Put #of_1, 1, vntRngToSave

Close #of_1

I suspect copying one line at a time from col. U to disk would work, but haven't figured out how to do that. That would also allow me to insert the VbCr and VbLf.

I have to write the list to disk as eventually the whole thing will go on CD and cannot be written there. Irfanview, also on the CD, has provisions for loading a slideshow list from a .txt file.

I have been 6 months on this beast and this is the last bit of coding I need. All replies gratefully received.

dmorse02@twcny.rr.com
Edit: Moved from General

Serial Number Of The Hard Disk
Hello, my English is basic. I need to know the serial number of the hard disk in which the application is installed. Not the serial number of the volume, but that of the physical disk.
Thank you, Marcos.

Calculating Hard Disk Space
i wonder how can i calculate the free space on my disk ? i need it for a program i do

Question About Hard Disk Serial No.
Hello people,
Is it okay for my hard disk serial number to be a negative number, e.g.:

-26175561 or something?

I want to use the hard disk serial number to identify my app. on a computer but I was wondering if it should be in a particular format. By the way, I'm using XP (if that make a difference from others) and I'm retrieving the serial through GetVolumeInformation API.

Thanks!!

BTW Bill: Can I say your HashPassword function works great!

Hard Disk And Processor Info..
i want to know that how much hard drive space is left and what is the total size of hard disk. Please consider that what if there are more than one logial partitions...

my second task is to know that how much is the processor usage of computer In percentage.

please help me with this.

bye.

Copyright © 2005-08 www.BigResource.com, All rights reserved