is it possible to goust out a folder using vb6 ie greyed out so you can see the folder but not access it
any help much appreshiated
Printable View
is it possible to goust out a folder using vb6 ie greyed out so you can see the folder but not access it
any help much appreshiated
u mean "Ghost" it?
like when its a hidden system folder?
U can (I think) but only if u have NT/XP Pro where user permissions can be set
yes thats right!!!
can you point me in the right direction as to how this is done
do u have XP Pro or NT Pro?
xp pro
ok.. well ive never done it.. but basically its properties of the folder..
http://www.microsoft.com/technet/scr..._scr_tspz.mspx
VB Code:
'Add reference to the MS Scripting Runtime Dim FSO As New FileSystemObject Private Sub Form_Load() Dim FLD As Folder Set FLD = FSO.GetFolder("C:\VB\apran") 'Set Hidden FLD.Attributes = Hidden 'Set SYstem 'FLD.Attributes = System 'Set etc 'FLD.Attributes = Archive 'FLD.Attributes = Directory 'FLD.Attributes = Normal 'FLD.Attributes = ReadOnly 'setting to Hidden or System should "Grey it" End Sub
I dont know how to Restrict it... (setting password.. but that a start)
You can only Ghost a Disk or Partition as far as I know.Quote:
Originally Posted by Redangel
I think he meant to hide the folder and also see it in the explorer in some alternate color.
couldnt you just open cmd.exe and then do attrib +h c:\myfolder which would be so much easier.
XP doesn't come with attrib...???
How about good old SetAttr() :
VB Code:
Private Sub Command1_Click() SetAttr "c:\temp", vbHidden End Sub