Jump to content

File encoding chek


Oron
 Share

Recommended Posts

Hello,

i would like to check file if the extention was changed,

if the extention was changed show message " number 1"

if the extention had no change so the message will be " number 2 "

here is my script :

 Local $iEncoding = FileGetEncoding("C:\Users\oronyo.hp430-oronyo\Desktop\1.dat") ; Retrieve the file encoding of the current script.
    If @error Then
        MsgBox(0, "", "Error: Could not obtain the file encoding.")
        Else
        MsgBox(0, "", "FileGetEncoding: The value returned was: " & $iEncoding) ; The value returned for this example should be 0 or $FO_ANSI.
    EndIf

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...