Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9138597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:16:38+00:00 2026-06-17T09:16:38+00:00

I am trying to create a program that will create a new outlook message

  • 0

I am trying to create a program that will create a new outlook message prepopulated with details using Outlook switches.

If I am in command prompt the following will successfully create a new blank message.

"C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note

I have found several posts here about how to use command prompt in c#, and have tried to get this same switch command to run from c# but it gives an error in the command prompt box that flashes: ipm.note is not recognized as an internal or external command, operable program or batch file.

I know ipm.note is correct for the switch, but apparently when passing it in the C# code it’s missing something? Possibly an escape character? Here’s my code that is in use.

System.Diagnostics.Process.Start("CMD.exe", "\"C:\\Program Files (x86)\\Microsoft Office\\Office14\\OUTLOOK.EXE\" /c ipm.note");

Also regarding this, I wanted to be able to use the @ symbol so I didn’t have to escape each special character, but I don’t know if you can use that and also add quotes inside a string, for example:

string temp = @""C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note"
In the above, the first set of quotes open and close then everything until the next set of quotes is not considered part of the string.

Recommendations on both of these situations are greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:16:39+00:00Added an answer on June 17, 2026 at 9:16 am

    You need to pass the /c switch to cmd.exe as well. Try this:

    Process.Start("cmd.exe", @"/c """"C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE"" /c ipm.note""");
    

    However, it would actually be far better to just run outlook.exe directly and avoid a lot of the argument problems:

    Process.Start(@"C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE", "/c ipm.note");
    

    In regard to your question about strings prefixed by the @ character, those strings are referred to as verbatim string literals. You can include a double quote inside one of these by using two double quotes together as I did in my code snippet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a program that will get data directly from socket
I am trying to create a program that will be passed input data from
I am trying to create a program that will do some simple calculations, but
I'm trying to create a program that will return a certain number decomposed to
I am trying to create a program that will search through articles that I
I'm trying to create a word sorting program that will read the words in
I am trying to create a program that will set up a crontab to
I am trying to create a program that will open a text file with
I am trying to create a program that will create a vector, generate 100
I am trying to create a program that will tell if a number given

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.