thx atas bantuannya..

Mau tanya dikit lagi nih, kalau kita mau file tersebut bukan cuma hidden 
tapi juga readonly. Setingnya gimana mas..?


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2006 4:42 PM
Subject: Re: [indopb] hiden files


> cara aplikasi untuk me-hidden-kannya sbb:
>
> //1. declare external functions win32 for file
>
> // Win 32 calls
> // ...
>
> Function ulong GetFileAttributesA (ref string filename) library
> "KERNEL32.DLL"
>
> Function boolean SetFileAttributesA (ref string filename, ulong attrib)
> library "KERNEL32.DLL"
>
> //...
>
> //2. script powerbuilder
>
> string sfilename
> ulong utest1, utest2
> boolean btest1
>
> sfilename = "app.ini"
> utest1 = GetFileAttributesA (sfilename) // saving current file attribut
> to utest1
> btest1 = SetFileAttributesA (sfilename, 2) // setting file attribute : 
> hidden
> utest2 = GetFileAttributesA (sfilename) // checking new file attribut :
> hidden
> btest1 = SetFileAttributesA (sfilename, utest1) // restoring saved file
> attribut from utest1
>
> // notes:
> //        untuk melihat attribut file bisa juga dengan fungsi dirlist dari
> powerbuilder
>
>
> cheers,
>
> untung d.s.
> 


-----------------------------------------------
IndoPB - Indonesia PB User Group 
An Indonesian PowerBuilder User Group's Event
2nd PowerBuilder Update
Mezzanine Floor Hotel Ibis Slipi
26/27 August 2006
To Register : 
http://groups.yahoo.com/group/indopb/database?method=addRecord&tbl=4 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/indopb/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke