File: assocXMLJaxe.bat

package info (click to toggle)
jaxe 3.5-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 38,816 kB
  • ctags: 4,479
  • sloc: java: 40,767; xml: 20,913; sh: 87; makefile: 51
file content (27 lines) | stat: -rwxr-xr-x 1,086 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:: pour ouvrir les fichiers XML avec Jaxe

assoc .xml=xmlfile

set diresc=%cd:\=\\%

> "%Temp%.\JaxeAssoc.reg" echo Windows Registry Editor Version 5.00
>>"%Temp%.\JaxeAssoc.reg" echo.
>>"%Temp%.\JaxeAssoc.reg" echo [HKEY_CLASSES_ROOT\xmlfile]
>>"%Temp%.\JaxeAssoc.reg" echo @="XML Document"
>>"%Temp%.\JaxeAssoc.reg" echo.
>>"%Temp%.\JaxeAssoc.reg" echo [HKEY_CLASSES_ROOT\xmlfile\DefaultIcon]
>>"%Temp%.\JaxeAssoc.reg" echo @="\"%diresc%\\Jaxe.exe\",1"
>>"%Temp%.\JaxeAssoc.reg" echo.
>>"%Temp%.\JaxeAssoc.reg" echo [HKEY_CLASSES_ROOT\xmlfile\shell]
>>"%Temp%.\JaxeAssoc.reg" echo @="edit_with_jaxe"
>>"%Temp%.\JaxeAssoc.reg" echo.
>>"%Temp%.\JaxeAssoc.reg" echo [HKEY_CLASSES_ROOT\xmlfile\shell\edit_with_jaxe]
>>"%Temp%.\JaxeAssoc.reg" echo @="Edit with Jaxe"
>>"%Temp%.\JaxeAssoc.reg" echo.
>>"%Temp%.\JaxeAssoc.reg" echo [HKEY_CLASSES_ROOT\xmlfile\shell\edit_with_jaxe\command]
>>"%Temp%.\JaxeAssoc.reg" echo @="\"%diresc%\\Jaxe.exe\" \"%%1\""
>>"%Temp%.\JaxeAssoc.reg" echo.

START /WAIT REGEDIT /S "%Temp%.\JaxeAssoc.reg"

del "%Temp%.\JaxeAssoc.reg"