kcvinu

How to hide a folder without using FileSetAttrib

5 posts in this topic

Hi all,

How to hide a folder without using FileSetAttrib function. I have made a script for getting folder path with FileSelectFolder function. But don't know how to hide it efficiently. 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

FileSetAttrib("FILE GOES HERE", "+H") ;Hides the file or folder.

FileSetAttrib("FILE GOES HERE", "+SH") ;Gives the file or folder system attribute and hides it even if the normal unhide option is checked under folder options.

Edited by Bearpocalypse

Share this post


Link to post
Share on other sites

Hi 

Bearpocalypse, If i select "Show hidden files" option in windows explorer, will this hidden folder be shown ?

My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

 

Hi 

Bearpocalypse, If i select "Show hidden files" option in windows explorer, will this hidden folder be shown ?

 

 

You can always show all files. Using the +H attribute will make it as if you right-clicked and went to Properties and hit the Hidden checkbox. +SH will be like a super hide. You can show system files, but if you uncheck the Hide protected operation system files option in Folder Options the files will show. BUT, a person will get a super scary Windows message telling them it is not a good idea to show OS files. 9.9/10 someone will leave them hidden. There is no 100% hide ability.

Share this post


Link to post
Share on other sites

kcvinu,

Before we go any further, why do you want to hide this folder? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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