Jump to content

Recommended Posts

Posted

The key in the HKEY_CLASSES_ROOT\Directory\shell\Go\command

the value name is (Default)

the type is REG_SZ

and the value is "current running program""%1"

so i wrote this script:

RegWrite("HKEY_CLASSES_ROOT\Directory\shell\Go\command","","REG_SZ",@ScriptFullPath&"%1")oÝ÷ Ø­¶«zÛ«ïj[)¶¬Ov>º ­©¬{µ#§¶Ø^½©nzX¤zØb²«¨´==Øú趦±ì^ªê-ªê-Ö«¨´ýÚòj¢©Ýº-y«­¢+ÙI]É¥Ñ ÅÕ½Ðí!-e}
1MMM}I==PÀäÈí¥ÉѽÉäÀäÈíÍ¡±°ÀäÈí¼ÀäÈí½µµ¹ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐíI}MhÅÕ½Ðì±MÉ¥ÁÑÕ±±AÑ µÀìÅÕ½ÐìÅÕ½ÐìÅÕ½ÐìÄÅÕ½ÐìÅÕ½ÐìÅÕ½Ðì

And the return like this

D:\Programs.exe"%1"

Now, how to insert @Scriptfullpath between "" ?

So The value return like this

"D:\Programs.exe""%1"

Anybody know? Please tell me... :)

Sorry bad english, i'm Indonesian >_<

Posted

Use double quotes. Like so:

Original:

RegWrite("HKEY_CLASSES_ROOT\Directory\shell\Go\command","","REG_SZ",@ScriptFullPath&"""%1""")

New, Working:

RegWrite("HKEY_CLASSES_ROOT\Directory\shell\Go\command","",'"'&@ScriptFullPath&'"'&'"%1"')

The double quotes above will look, and make more sense in the SciTe Script Editor!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...