Reading Windows Registry

Hi.

Here is the scenario:a file called needs to be opened. We want to

open it using the program windows has associated with it (ie Microsoft

Word). We tried the following code:

task.part.OperatingSystem.RunCommand(

command = 'C:\\MSOffice\\Winword\\WINWORD.EXE

C:\\windows\\desktop\\psgsyb.txt',IsSynchronous = FALSE);

This code accomplished what we wanted it to for a file where we know the

associated program we want to use. Now we want to be able to use

similar code to open any file dynamically. Therefore we need a way to

determine what the associated program file is that needs to be executed

to run the requested file and where the associated file can be found.

We know this information is stored in the windows registry but we don't

know exactly where or what the best way to read the registry is. Any

suggestions?Has anyone been able to do this type of processing some

other way?

Thanks,

Michelle Leber

Software Developer

Metrix,Inc

(414) 798-8560x1196

<a href=

"MailTo:michellel@metrix-inc.com">MailTo:michellel@metrix-inc.com</a>

<a href="http://www.metrix-inc.com">http://www.metrix-inc.com</a>

I just got lost in thought...it was unfamiliar territory... :)

[1357 byte] By [] at [2007-11-25 5:01:18]
# 1

Yes, we tried this. It does work on our NT machine but not on our

windows 95. The system just seems to hang if we try this synchronously

and the command seems to get lost in space if we try it asynchronously.

Thank you for your suggestions however...

Michelle Leber

Software Developer

Metrix,Inc

(414) 798-8560x1196

<a href=

"MailTo:michellel@metrix-inc.com">MailTo:michellel@metrix-inc.com</a>

<a href="http://www.metrix-inc.com">http://www.metrix-inc.com</a>

I just got lost in thought...it was unfamiliar territory... :)

>-

>From:

>Francis_Blesso@SunLifeOfCanada.com[SMTP:Francis_Blesso@SunLifeOfCanada.

>com]

>Sent:Friday, December 12, 1997 3:25 PM

>To:MichelleL@august.metrix-inc.com

>Subject:Re: Reading Windows Registry

>

>

>Michelle,

>

>Have you tried just using the filename. I have only tried this in the

>Windows NT command prompt, but when I just type in a filename the OS

>launches the correct program to open the file. For example if I type

>'C:\MYDIR\MYFILE.TXT' then notepad is launched, displaying the file.

>

>Let me know if this works.

>Francis Blesso

>Senior Consultant.

>CSC.

>

>

>

at 2007-6-29 9:20:41 > top of Java-index,Application & Integration Servers,Integration Servers...