Re: Common Dialog - Change file extension

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Bob Butler" <tiredofit@xxxxxxxxxx> wrote in message
news:ewBL1MbnFHA.1480@xxxxxxxxxxxxxxxxxxxxxxx
> "Ted" <2000@xxxxxxxxxx> wrote in message
> news:%23WxvtnWnFHA.3312@xxxxxxxxxxxxxxxxxxxx
>> If you want to save a .bat in Notepad, you have to put
>> the extension in the filename and select All files, otherwise
>> it will save it in .txt.
>> BTW: If you didn't know, Notepad and Word made by Microsoft.
>
> It drives me nuts when an application does that. As the user I've told it
> that I want to save "test.bat" by typing that name and I don't
> particularly
> care if the filter is currently set to *.TXT or not. When the program
> thinks that it knows better than me and goes ahead and changes the
> filename
> to "test.bat.txt" because I didn't also change the filter selection all it
> does is irritate the user who then has to go out and manually change the
> filename back to what I told it I wanted in the first place!
>
A tricky area, for plain text files you are 100% right, but for files whose
format is distinct then the extension is the first thing the operating
system has to identify the file type.
Giving a BMP file the extension .PICCY or .BMAP or anything but .BMP will
cause problems when you want to open it.

Regards
Dave.


.



Relevant Pages

  • Re: text file saved in COM format..
    ... caused it to run rather than opening in notepad. ... Try saving any file in notepad, it never suggests a filename ... i'm sure you mean double quotes. ... won't append any extension to the end of it. ...
    (microsoft.public.windowsxp.general)
  • Re: text file saved in COM format..
    ... caused it to run rather than opening in notepad. ... Try saving any file in notepad, it never suggests a filename ... i'm sure you mean double quotes. ... won't append any extension to the end of it. ...
    (microsoft.public.windowsxp.general)
  • Re: Common Dialog - Change file extension
    ... > the extension in the filename and select All files, ... If you didn't know, Notepad and Word made by Microsoft. ... thinks that it knows better than me and goes ahead and changes the filename ... to "test.bat.txt" because I didn't also change the filter selection all it ...
    (microsoft.public.vb.general.discussion)
  • Re: Common Dialog - Change file extension
    ... > If you want to save a .bat in Notepad, ... > the extension in the filename and select All files, ... ANY extension you want, regardless of what is selected in Save As Type. ...
    (microsoft.public.vb.general.discussion)
  • Re: Using an Excel sheet for batch delete
    ... but wondered what the routine would make of the situation where the input to both source and destination popups was identical. ... When I used it on filenames with no extension, ... Does the filename contain any dots. ... If SourcePath = "" Then Exit Sub ...
    (microsoft.public.excel.worksheet.functions)