Changeset 8581
- Timestamp:
- 10/03/09 09:01:30 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/script/padre (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/script/padre
r8578 r8581 90 90 if ( $^O eq 'MSWin32' ) { 91 91 92 # Integrate with registry via regedit... 93 # VBScript and registry on vista = Does not work! 94 my ( $reg, $regfile ) = File::Temp::tempfile( SUFFIX => '.reg' ); 95 print $reg <<'REG'; 96 Windows Registry Editor Version 5.00 97 98 [HKEY_CLASSES_ROOT\*\shell\Edit with Padre] 99 100 [HKEY_CLASSES_ROOT\*\shell\Edit with Padre\Command] 101 @="c:\\strawberry\\perl\\bin\\padre.exe \"%1\"" 102 REG 103 close $reg; 104 92 105 # Create Padre's Desktop Shortcut 93 106 require File::Temp; … … 104 117 MsgBox "Padre has created a shortcut on your desktop", vbOKOnly Or vbInformation, "Information" 105 118 CODE 119 120 print $vbs <<"CODE"; 121 ' Now adding "Edit with Padre" to shell context menu 122 shell.Run("regedit.exe /S ""$regfile"""), 1, true 123 MsgBox """Edit with Padre"" has been added to your right click menu", vbOKOnly Or vbInformation, "Confirmation" 124 CODE 106 125 close $vbs; 107 126 system(qq{wscript "$vbsfile"}); 108 109 # Integrate with registry via regedit...110 # VBScript and registry on vista = Does not work!111 my ( $reg, $regfile ) = File::Temp::tempfile( SUFFIX => '.reg' );112 print $reg <<'REG';113 Windows Registry Editor Version 5.00114 115 [HKEY_CLASSES_ROOT\*\shell\Edit with Padre]116 117 [HKEY_CLASSES_ROOT\*\shell\Edit with Padre\Command]118 @="c:\\strawberry\\perl\\bin\\padre.exe \"%1\""119 REG120 close $reg;121 system(qq{regedit /S "$regfile"});122 127 123 128 } else {
Note: See TracChangeset
for help on using the changeset viewer.
