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

  • Home
  • SEARCH
  • 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

Not very technical, but... I have to implement a bad words filter in a
Not sure if this is possible or if I'm expressing correctly what I'm looking
(Not related to versioning the database schema) Applications that interfaces with databases often have
Not really getting the point of the map function. Can anyone explain with examples
Not that I'm doing something like that, but I am kind of interested how
Not sure how to ask a followup on SO, but this is in reference
Not too practical maybe, but still interesting. Having some abstract question on matrix multiplication
Not too long ago, I had a problem which required me to set WinDbg.exe
Not sure what exactly is going on here, but seems like in .NET 1.1
I am a newbie in this field so please excuse my silly mistakes :)

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.