Command Line Options...

  • Thread starter Thread starter Vikas Tiwari
  • Start date Start date
V

Vikas Tiwari

Hi,

I want to open outlook with a specified folder within a specified .pst
file.
I am using following commandline string:
"C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE" /select
outlook:\\test\contacts

It is working fine and opening the "contacts" folder of "test" pst.

Now the problem is that there are two ".pst" files in the outlook with
same name "test".(Names can be same, though paths need to be
different).In this scenario, the above commandline option is opening
the contacts of first "test" pst. I want to open the contacts folder
of second .pst.

Can anyone help me out here...??

I am searching goole for last few days but not able to get any
solution.
 
You'll have to change the display name of one of those .pst files if you
want to stick to the command-line solution.
 
Hi Sue,
Thanks for the reply. But my problem is that I have to develop a script
to automate the following steps:

"Export the PAB to a specified Contacts folder."

What I am doing is as follows:
1) showing all the available contacts folder in all the pst files to
user in a HTML page.
2) User selects one of the contacts folder.
3) I am automating the export with send keys. so after selecting
Export/import, when I am clicking next > next a dialog comes where I
have to select the appropriate contacts folder.
Here I can't allow user to make changes as it could be really
unpredictable to detect the user's action. So what I am doing is : I am
opening the outlook with the user selected folder(as selected in step
1) and then exporting. doing this when I click next > next appropriate
contacts folder is selected automatically.

Now the problem: If there are more than one PST files with same name
then I am not able to automate correctly because the first of the two
contact folder is selected and I am not able to open the outlook with
second contacts folder.

Can you tell me some way to start the outlook with the second contacts
folder(second PST's contacts folder)??

Regards.
 
Hi Sue,
Thanks for the reply. But my problem is that I have to develop a script
to automate the following steps:

"Export the PAB to a specified Contacts folder."

What I am doing is as follows:
1) showing all the available contacts folder in all the pst files to
user in a HTML page.
2) User selects one of the contacts folder.
3) I am automating the export with send keys. so after selecting
Export/import, when I am clicking next > next a dialog comes where I
have to select the appropriate contacts folder.
Here I can't allow user to make changes as it could be really
unpredictable to detect the user's action. So what I am doing is : I am
opening the outlook with the user selected folder(as selected in step
1) and then exporting. doing this when I click next > next appropriate
contacts folder is selected automatically.

Now the problem: If there are more than one PST files with same name
then I am not able to automate correctly because the first of the two
contact folder is selected and I am not able to open the outlook with
second contacts folder.

Can you tell me some way to start the outlook with the second contacts
folder(second PST's contacts folder)??

Regards.
 
How are you doing #1? If you keep track of the EntryID and StoreID of each
folder, then you can use the Namespace.GetFolderFromID method to locate and
display it.
 
Back
Top