augustwind
02-24-2007, 11:49 PM
I'm trying something -
if chktxt then
Registry.SetValue(HKEY_CLASSES_ROOT, ".txt", "", "MyApp", REG_SZ);
Registry.SetValue(HKEY_CLASSES_ROOT, "MyApp\\\\shell\\\\open\\\\command", "", SessionVar.Expand("%AppFolder%\\\\MyApp.exe\\"%1\\""), REG_SZ);
(<-- error on above line)
end
but I get an error:
')' expected near '%'
I was not sure about the 'MyApp' part though, so I assumed it might be a mistake - (since it mentions 'KQXEditor' as the application)
I copied it directly from the knowledgebase article here (changing only the MyApp part):
http://support.indigorose.com/v3/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=357&nav=0,8
any ideas on how to resolve this?
if chktxt then
Registry.SetValue(HKEY_CLASSES_ROOT, ".txt", "", "MyApp", REG_SZ);
Registry.SetValue(HKEY_CLASSES_ROOT, "MyApp\\\\shell\\\\open\\\\command", "", SessionVar.Expand("%AppFolder%\\\\MyApp.exe\\"%1\\""), REG_SZ);
(<-- error on above line)
end
but I get an error:
')' expected near '%'
I was not sure about the 'MyApp' part though, so I assumed it might be a mistake - (since it mentions 'KQXEditor' as the application)
I copied it directly from the knowledgebase article here (changing only the MyApp part):
http://support.indigorose.com/v3/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=357&nav=0,8
any ideas on how to resolve this?