Re: Get filetype of files without extension

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



I've just done a quick glance at the 7 NG's I monitor and every one of them use Top Posting. Regardless of whether it is "good" or "bad" the infighting isn't helping the Op one bit. I try to follow posting conventions and, so far, all of the ones I monitor use top posting and so shall I.

GP

--->
here we go...

no, YOU quit bottom posting. i like to read newsgroups just like i read my email... from the top, the same way YOU do


"Adam Sandler" <corn29@xxxxxxxxxx> wrote in message news:1181850169.492636.203500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jun 14, 10:29 am, "J. Anos" <j...@xxxxxxxx> wrote:
huh? no, you dont "lose" extensions.
by checking to not display file extensions for known file types, youre
simply not DISPLAYING them, theyre still very much there. attaching a file
to an email has NO affect and i assure you when the suer gets the file the
extension is still there. sounds like they dont have the program installed
to open the file... or the association is messed up

<webmas...@xxxxxxxxxxxx> wrote in message

news:1181754738.517648.129150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Hi,

> When you have activated the explorer option "hide known file
> extensions" and you mail an attachment, on the receiving computer, the
> extension has been lost.

> With MS Word documents, this is no problem, the file will
> automatically be opened with MS Word.
> With pdf documents, this isn't the same... you get a dialog to choose
> the right program (but when you open this, you can see PDF1.2).

> Is it possible to programmatically get the file-type or extension from
> those files?

> Thanks in advance,

> Netfreaky

Via WMI, you can discern the file (which gives the path and the file
name together), the filename, and/or the extension. See:
http://msdn2.microsoft.com/en-us/library/aa387236.aspx and you might
want to download the scriptomatic from the Microsoft Script Center to
see demos of these classes in action.

J.Anos... QUIT TOP-POSTING!!! And quit being a jerk to people. If
you don't have a solution, don't post. I haven't seen you post
anything solutions but you're more than quick to put someone down or
tell them they don't know what they are doing. Knock it off!


.



Relevant Pages

  • Re: Editors
    ... "If you're posting an EXE attachment then, ... file extension" instructions in the post body...no problems (beyond ... source code itself (hide it in DB statements and have a "JMP"...many ...
    (alt.lang.asm)
  • installation, debugging
    ... (I am posting from a web interface- google groups, ... not appearing on the group, so am posting again, if you get two of the ... Not only for this file but for many extension files like php_mysql.dll, ... 6)How do I debug PHP like you can debug Java in Eclipse or NetBeans and ...
    (comp.lang.php)
  • Re: Outlook 2002 email security with attachements
    ... Have the user re-send with a ZIP file or change the extension name for the ... purposes of e-mailing. ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.security)
  • Re: Should I file a Motion for a Default Judgement?
    ... I tried to send this to you via email but received a none-delivery ... Therefore I am posting it here: ... asks for an extension of 30 days, my plan is to agree to a ONE TIME ... no Judge have been assigned to my case. ...
    (misc.legal)
  • My Idea
    ... If it wasn't for this support group, I probably wouldn't have quit smoking. ... After I started posting them, I found out there was a lot of interest. ... Then I got the emails from the ... cowards, or coward. ...
    (alt.support.stop-smoking)