DeeRiee Posted September 21, 2008 Share Posted September 21, 2008 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 >_< Link to comment Share on other sites More sharing options...
TehWhale Posted September 21, 2008 Share Posted September 21, 2008 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! Link to comment Share on other sites More sharing options...
DeeRiee Posted September 21, 2008 Author Share Posted September 21, 2008 Working fine, thanks,.... umm... Sorry for background Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now