Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    SUF6NEWBIE Guest

    Is it NTFS or FAT32 ?

    do any of you gurus have a way within AMS5Pro of detecting
    whether a fixed drive or partition's file system is NTFS or Fat32.

    perhaps a registry entry or system dll function call.

    any help much appreciated..

    reason..need to warn user if a file to be created is > 4GB(fat32 max)
    and drive is fat32

    TKS
    MTN
    Last edited by SUF6NEWBIE; 06-23-2004 at 07:08 PM.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You can try this. It will return ERROR if it can't determine the file system type.

    Sample Code
    Code:
    function GetFileSysType(sDrive)
    	return DLL.CallFunction("AutoPlay\\Docs\\driveinfo.dll", "GetDriveFileSysType", "\"" .. sDrive .. "\"" , DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)
    end 
    
    Dialog.Message("", GetFileSysType("C:\\"))
    Quote Originally Posted by SUF6NEWBIE
    do any of you gurus have a way within AMS5Pro of detecting
    whether a fixed drive or partition's file system is NTFS or Fat32.

    perhaps a registry entry or system dll function call.

    any help much appreciated..

    reason..need to warn user if a file to be created is > 4GB(fat32 max)
    and drive is fat32

    TKS
    MTN
    Attached Files

  3. #3
    SUF6NEWBIE Guest
    WORM..downloaded...you really are DA MAN....
    now stored in my worms_dlls folder !!

    Has your family and the town recovered fully from the 'big blow'
    (or am I confusing you with TJ..sorrrrrrry if I have)

    Again many thanks

    martin

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Both of us got hit.

    Water levels are still high, but it is at least contained within the river banks now.


    Glad to help.

    Quote Originally Posted by SUF6NEWBIE
    WORM..downloaded...you really are DA MAN....
    now stored in my worms_dlls folder !!

    Has your family and the town recovered fully from the 'big blow'
    (or am I confusing you with TJ..sorrrrrrry if I have)

    Again many thanks

    martin

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by SUF6NEWBIE
    WORM..downloaded...you really are DA MAN....
    He's all that, and a box of cookies.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    SUF6NEWBIE Guest
    ..So are you...airmail express..chocalate brownies...to both..

    I'd like to offer the both of you my 'retail' WINTDeploy SR1 when
    it goes Gold (No Cost...for lifetime of the software--updates etc etc)

    As my personal thanks and on behalf of all forums users..

    When it gets close I'll post some info on it...

    Regards

    MTN

  7. #7
    SUF6NEWBIE Guest
    Got this working...here's a tested lua file..just rename file ext to .lua
    and import to a new prject or whatever..THANKS again WORM
    Note: has been written as a GLOBAL function

    enumerates all fixed drive-partitions.. with a little extra thrown in

    download the DLL from Worm's post above...

    might save someone a little time..
    Attached Files
    Last edited by SUF6NEWBIE; 06-24-2004 at 02:14 AM.

  8. #8
    SUF6NEWBIE Guest
    Sorry all..small syntax error try this one..
    also added the new math.round action ..5.0.0.5 neeeded.
    Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts