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 4078852
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:43:34+00:00 2026-05-20T17:43:34+00:00

(if not applicable to SO, please refer to another appropriate place, thanks). When using

  • 0

(if not applicable to SO, please refer to another appropriate place, thanks).

When using the registry to associate file extensions and application, I put in the full filename of my application, but that does not work well, only if I use the 8.3 filename.

for example ( taken from the registry) this works:

[HKEY_CLASSES_ROOT\Toto.Document\shell\myVerb\command]
@="C:\\my\\path\\bin\\Debug\\bin\\myexe_~1.EXE /dde"
[HKEY_CLASSES_ROOT\Toto.Document\shell\myVerb\ddeexec]
@="[myVerb(\"%1\")]"

but this does not work :

[HKEY_CLASSES_ROOT\Toto.Document\shell\myVerb\command]
@="C:\\my\\path\\bin\\Debug\\bin\\myexecutable.EXE /dde"
[HKEY_CLASSES_ROOT\Toto.Document\shell\myVerb\ddeexec]
@="[myVerb(\"%1\")]"

The action is called by right-clicking on the file in Explorer, I get the error :
“Windows cannot find ‘c:\users\me\desktop\tata.toto’. Make sure you typed the name correctly, and then try again”.


I’m creating the keys programatically with CRegKey and using GetModuleFileName to get the application path.

2 questions :
– I’m probably missing something in my registry entry ? (i’ve tried quoting the paths, but does not work)
– Can I get the “short” filename ? (searching a little bit seems that GetShortPath should work, but not always!)

Thanks.

Max.


(edit 22/03/2011)
I tried using quotes but it did not work (with /dde)
I decided to use normal parameters instead of /dde and it seems to work nicely with the normal path (not shortened like stated above).

I’m still not certain why when creating a simple MFC SDI project it will write out registry values with the old short name instead of the long name.

Thanks again.

Max.

  • 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-05-20T17:43:35+00:00Added an answer on May 20, 2026 at 5:43 pm

    Try creating the key with another couple of double-quotes (note between .EXE and /dde:

    @="C:\\my\\path\\bin\\Debug\\bin\\myexecutable.EXE" "/dde"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’d be very grateful with any help. I’m trying to add ‘not applicable’ to
NOT Web Pages Application - I used VisualStudio 2010 and it is a multi-projects
I have a Java application that is running embedded groovy scripts using a GroovyClassLoader
That's probably not MVC specific, it might as well applicable to ASP.NET WebForms, but
i have asked this question before but the answer received was not applicable in
I am newbie in android application development. I am using the Form Stuff example
can somebody please explain what is wrong with my functions, thanks in advance: I
Not quite grasping what's going on here. Given the array (arr): [ { first_name:
Not sure if i'm naming it correctly (i.e. nested interface implementations). However I do
Not very sure how to word this question but I'll give an example. $string

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.