public
Created

Sample OpenXX initialization file showing how to use GDAL utilities

  • Download Gist
OpenXX.ini
INI
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
[Commands]
0.Type=0
0.AssociateWith=3
0.Title="Open Command Prompt"
0.Program="%OpenXXApp%"
0.Arguments="OpenCommandPrompt %FilePaths%"
0.WorkingDir=""
0.Icon="%OpenXXDll%,-101"
0.FileTypes=""
1.Type=0
1.AssociateWith=0
1.Title="Copy Path"
1.Program="%OpenXXApp%"
1.Arguments="CopyPath %FilePaths%"
1.WorkingDir=""
1.Icon="%OpenXXDll%,-102"
1.FileTypes=""
2.Type=0
2.AssociateWith=0
2.Title="Change Properties"
2.Program="%OpenXXApp%"
2.Arguments="ChangeProperties %FilePaths%"
2.WorkingDir=""
2.Icon="%OpenXXDll%,-103"
2.FileTypes=""
3.Type=0
3.AssociateWith=2
3.Title="Create Sub Folder"
3.Program="%OpenXXApp%"
3.Arguments="CreateSubFolder %FilePaths%"
3.WorkingDir=""
3.Icon="%OpenXXDll%,-104"
3.FileTypes=""
4.Type=0
4.AssociateWith=1
4.Title="View File Checksum"
4.Program="%OpenXXApp%"
4.Arguments="ViewFileChecksum %FilePaths%"
4.WorkingDir=""
4.Icon="%OpenXXDll%,-105"
4.FileTypes=""
5.Type=0
5.AssociateWith=4
5.Title="Run With Arguments"
5.Program="%OpenXXApp%"
5.Arguments="RunWithArguments %FilePaths%"
5.WorkingDir=""
5.Icon="%OpenXXDll%,-106"
5.FileTypes="*.exe;*.lnk"
6.Type=0
6.AssociateWith=1
6.Title="Register DLL"
6.Program="%OpenXXApp%"
6.Arguments="RegisterDLL %FilePaths%"
6.WorkingDir=""
6.Icon="%OpenXXDll%,-107"
6.FileTypes="*.dll;*.ocx"
7.Type=0
7.AssociateWith=1
7.Title="Unregister DLL"
7.Program="%OpenXXApp%"
7.Arguments="UnregisterDLL %FilePaths%"
7.WorkingDir=""
7.Icon="%OpenXXDll%,-108"
7.FileTypes="*.dll;*.ocx"
8.Type=0
8.AssociateWith=1
8.Title="Copy Shortcut Target"
8.Program="%OpenXXApp%"
8.Arguments="CopyShortcutTarget %FilePaths%"
8.WorkingDir=""
8.Icon="%OpenXXDll%,-109"
8.FileTypes="*.lnk"
9.Type=0
9.AssociateWith=4
9.Title="Find Shortcut Target"
9.Program="%OpenXXApp%"
9.Arguments="FindShortcutTarget %FilePaths%"
9.WorkingDir=""
9.Icon="%OpenXXDll%,-110"
9.FileTypes="*.lnk"
10.Type=1
11.Type=0
11.AssociateWith=4
11.Title="Notepad"
11.Program="notepad.exe"
11.Arguments="%FilePaths%"
11.WorkingDir=""
11.Icon=""
11.FileTypes=""
12.Type=0
12.AssociateWith=4
12.Title="Paint"
12.Program="mspaint.exe"
12.Arguments="%FilePaths%"
12.WorkingDir=""
12.Icon=""
12.FileTypes="*.bmp;*.jpg;*.jpeg;*.jpe;*.jfif;*.gif;*.tif;*.tiff;*.png"
13.Type=1
14.Type=0
14.AssociateWith=4
14.Title="GDALinfo"
14.Program="%ComSpec%"
14.Arguments="/k gdalinfo %FilePaths%"
14.WorkingDir="%FileDir%"
14.Icon=""
14.FileTypes="*.bmp;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.png;*.sid;*.ecw;*.asc"
15.Type=0
15.AssociateWith=4
15.Title="Convert to JPEG"
15.Program="%ComSpec%"
15.Arguments="/c for %i in (%FilePaths%) do start gdal_translate -of JPEG %~nxi %~ni.jpg"
15.WorkingDir="%FileDir%"
15.Icon=""
15.FileTypes="*.bmp;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.png;*.sid;*.ecw;*.asc"
16.Type=0
16.AssociateWith=0
16.Title="Convert to JPEG (batch)"
16.Program="%ComSpec%"
16.Arguments="/c for %i in (%FilePaths%) do start gdal_translate -of JPEG %~nxi %~ni.jpg"
16.WorkingDir="%FileDir%"
16.Icon=""
16.FileTypes="*.bmp;*.jpg;*.jpeg;*.gif;*.tif;*.tiff;*.png;*.sid;*.ecw;*.asc"
17.Type=1
18.Type=0
18.AssociateWith=0
18.Title="Customize Open++"
18.Program="%OpenXXApp%"
18.Arguments=""
18.WorkingDir=""
18.Icon="%OpenXXDll%,-111"
18.FileTypes=""

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.