Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how can i execute a REG_EXPAND_SZ command ?

how can i execute a REG_EXPAND_SZ command ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-adminhelpannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ohadp
    wrote on last edited by
    #1

    I'm implementing my own version of the Explorer 'New' menu. 'Create Shortcut' and 'Create Briefcase' are both stored in the registry as REG_EXPAND_SZ strings. I've used ExpandEnvironmentStrings to translate things like %SystemRoot% to c:\winnt\system32. My problem is the %1, %2 parameters. I've succesfully ran the 'create shortcut' command supplying the directory under-which I want the shortcut to be created in instead of %1. When I try to play the same trick on the Briefcase item it does nothing. What does the !d! in : %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\syncui.dll,Briefcase_Create %2!d! %1 translate to ? What are the rules for %1 %2 and %x ? Is there a 'normal' way to execute this commands, without hacks ? Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups