Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows registry entry

Status
Not open for further replies.

fhutt

Programmer
Jul 7, 2006
79
AU
Hello,
I have a windows registry problem. I am using Windows XP SP2 and would like to to insert into the registry the following:

registry set "HKEY_CLASSES_ROOT\\jpegfile\\shell\\Resample\\command" (Default) "$argv0 \"%1\""

Unfortunately, I end up with 2 (Default) valuenames. The first is empty and the second has the correct value.

How do I use the registry set procedure to create the keynames and just one Default valuename.
Thanks
 
Found the solution to this problem.
Instead of specifying (Default), which creates a new (Default) entry, use {}.

registry set "HKEY_CLASSES_ROOT\\jpegfile\\shell\\Resample\\command" {} "$argv0 \"%1\""

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top