Jump to content

FTYPE doesn't work as per docs


Recommended Posts

Posted

The cmd prompt command FTYPE doesn't work as per the "/?" help

documentation. It says that if you type the command with an associated

file type, it will delete the open command string for that file type.

But it doesn't work. For example, if I enter:

 

C:\>FTYPE FileType=

 

Where FileType equals any associated file type, it returns:

 

File type 'FileType' not found or no open command associated with it.

  • Replies 3
  • Created
  • Last Reply
Guest Alan Edwards
Posted

Re: FTYPE doesn't work as per docs

 

That is not the way I read the "/?" help.

Don't use the "=" sign with nothing following.

e.g.

FTYPE piffile

 

....Alan

--

Alan Edwards, MS MVP Windows - Internet Explorer

http://dts-l.com/index.htm

 

 

 

 

On Thu, 15 May 2008 19:39:53 -0700 (PDT), in

microsoft.public.windowsxp.general, Sal <here@softcom.net> wrote:

>The cmd prompt command FTYPE doesn't work as per the "/?" help

>documentation. It says that if you type the command with an associated

>file type, it will delete the open command string for that file type.

>But it doesn't work. For example, if I enter:

>

>C:\>FTYPE FileType=

>

>Where FileType equals any associated file type, it returns:

>

>File type 'FileType' not found or no open command associated with it.

Guest Big Al
Posted

Re: FTYPE doesn't work as per docs

 

Alan Edwards wrote:

> That is not the way I read the "/?" help.

> Don't use the "=" sign with nothing following.

> e.g.

> FTYPE piffile

>

> ...Alan

> --

> Alan Edwards, MS MVP Windows - Internet Explorer

> http://dts-l.com/index.htm

>

>

>

>

> On Thu, 15 May 2008 19:39:53 -0700 (PDT), in

> microsoft.public.windowsxp.general, Sal <here@softcom.net> wrote:

>

>> The cmd prompt command FTYPE doesn't work as per the "/?" help

>> documentation. It says that if you type the command with an associated

>> file type, it will delete the open command string for that file type.

>> But it doesn't work. For example, if I enter:

>>

>> C:\>FTYPE FileType=

>>

>> Where FileType equals any associated file type, it returns:

>>

>> File type 'FileType' not found or no open command associated with it.

I think you both are on the wrong track. This is the help:

=====================================================================

Displays or modifies file types used in file extension associations

 

FTYPE [fileType[=[openCommandString]]]

 

fileType Specifies the file type to examine or change

openCommandString Specifies the open command to use when launching files

of this type.

 

Type FTYPE without parameters to display the current file types that

have open command strings defined. FTYPE is invoked with just a file

type, it displays the current open command string for that file type.

Specify nothing for the open command string and the FTYPE command will

delete the open command string for the file type. Within an open

command string %0 or %1 are substituted with the file name being

launched through the assocation. %* gets all the parameters and %2

gets the 1st parameter, %3 the second, etc. %~n gets all the remaining

parameters starting with the nth parameter, where n may be between 2 and 9,

inclusive. For example:

 

ASSOC .pl=PerlScript

FTYPE PerlScript=perl.exe %1 %*

========================================================

 

See the last lines.

You don't type "filetype" its supposed to be the file type, not the

word filetype.

 

ASSOC .txt=notepad

FTYPE notepad=notepad.exe %1

 

I would think an alternate would be:

FTYPE .txt=notepad.exe %1

Guest Alan Edwards
Posted

Re: FTYPE doesn't work as per docs

 

I read the help.

 

On Fri, 16 May 2008 12:34:19 GMT, in

microsoft.public.windowsxp.general, Big Al <BigAl@nowhere.com> wrote:

>I think you both are on the wrong track. This is the help:

(snip)

>Alan Edwards wrote:

>> That is not the way I read the "/?" help.

>> Don't use the "=" sign with nothing following.

>> e.g.

>> FTYPE piffile

>>

>> ...Alan

>> --

>> Alan Edwards, MS MVP Windows - Internet Explorer

>> http://dts-l.com/index.htm

>>

>>

>>

>>

>> On Thu, 15 May 2008 19:39:53 -0700 (PDT), in

>> microsoft.public.windowsxp.general, Sal <here@softcom.net> wrote:

>>

>>> The cmd prompt command FTYPE doesn't work as per the "/?" help

>>> documentation. It says that if you type the command with an associated

>>> file type, it will delete the open command string for that file type.

>>> But it doesn't work. For example, if I enter:

>>>

>>> C:\>FTYPE FileType=

>>>

>>> Where FileType equals any associated file type, it returns:

>>>

>>> File type 'FileType' not found or no open command associated with it.


×
×
  • Create New...