- Timestamp:
- 2003-12-19T11:36:51+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileAssociationManager.java
r6260 r6313 109 109 // we use cmd and start 110 110 if (Utility.isWindows9x()) { 111 command = "command.com /c start \""+url+"\"";111 command = StaticStrings.WIN_9X_OPEN_COMMAND;//"command.com /c start \""+url+"\""; 112 112 } else { 113 command = "cmd.exe /c start \"\" \""+url+"\""; 114 } 113 command = StaticStrings.WIN_OPEN_COMMAND;//"cmd.exe /c start \"\" \""+url+"\""; 114 } 115 command = command.replaceAll(FILENAME_ARG, url); 115 116 return command; 116 117 } … … 180 181 if(Utility.isWindows()) { 181 182 ///ystem.err.println("Is Windows"); 182 command = WinRegistry.openCommand(filename); 183 } 183 //command = WinRegistry.openCommand(filename); 184 //try the start command 185 if (Utility.isWindows9x()) { 186 command = StaticStrings.WIN_9X_OPEN_COMMAND; 187 } else { 188 command = StaticStrings.WIN_OPEN_COMMAND; 189 } 190 191 } 192 184 193 // If we are on a mac, default to using the open program 185 194 else if(Utility.isMac()) {
Note:
See TracChangeset
for help on using the changeset viewer.