PDA

View Full Version : Is it NTFS or FAT32 ?


SUF6NEWBIE
06-23-2004, 08:03 PM
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

Worm
06-23-2004, 09:01 PM
You can try this. It will return ERROR if it can't determine the file system type.

Sample 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:\\"))


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

SUF6NEWBIE
06-23-2004, 09:12 PM
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

Worm
06-23-2004, 09:23 PM
Both of us got hit.

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


Glad to help.

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

TJ_Tigger
06-23-2004, 09:43 PM
WORM..downloaded...you really are DA MAN....


He's all that, and a box of cookies.

SUF6NEWBIE
06-23-2004, 09:46 PM
..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

SUF6NEWBIE
06-24-2004, 03:01 AM
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..

SUF6NEWBIE
06-24-2004, 04:50 AM
Sorry all..small syntax error try this one..
also added the new math.round action ..5.0.0.5 neeeded.