[oodisc] Ассоциации файлов

Victor Kapustin vak на mail.nw.ru
Вт Мар 2 00:15:34 MSK 2004


Здравствуйте, коллеги,

> DI> Помогите справиться с проблемой. OO, когда устанавливается,
> DI> то предлагает установить возможность открывать через себя файлы
> DI> *.doc и т.п. Когда я ставил OO на машину, там еще стоял MS Office
> DI> и мне это было не нужно. Сейчас я снес ms office и файлы *.doc
> DI> осиротели... Конечно можно кликнуть по каждому и сказать открывать
> DI> через ОО, но это будет не совсем то, что должно быть в оригинале
> DI> (да и гиморно это). Как воостановить ассоциации файлов для ОО?

[skipped]

> Либо я недопонял, либо в диалоге "открыть с помощью" есть галка
> "запомнить ассоциацию" или что-то в этом роде.

W2K help:

Assoc
Displays or modifies file name extension associations.

assoc [.ext[=[filetype]]]

Related items:

Ftype
Displays or modifies file types used in file name extension associations.

Ftype [filetype[=[command]]]

Parameters

filetype - Specifies the file type you want to display or change.

command - Specifies the open command to use when opening files of this type.

Type ftype without options to display the current file types that have open
command strings defined.
Type ftype filetype to display the current open command string for this file
type.
Type ftype filetype= to delete the open command string for the file type.

Within an open command string, ftype substitutes the following variables:
%0 or %1 are substituted with the file name being opened.
%* is substituted with all the parameters
%~n is substituted with all the remaining parameters, starting with the nth
parameter, where n can be any number from 2 to 9.
%3 is substituted with the first parameter, %4 with the second, and so on.

Так что можно написать командник.

Виктор Капустин,
vak на mail.nw.ru



Подробная информация о списке рассылки Oo-discuss