Jump to content

File encoding chek

Recommended Posts



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.")
        MsgBox(0, "", "FileGetEncoding: The value returned was: " & $iEncoding) ; The value returned for this example should be 0 or $FO_ANSI.

Share this post

Link to post
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


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.