Admin Tools

Kas, can you give examples how to hide and unhide please.
Show ProgramData folder:
Code:
attrib -h %ProgramData%
Show all files in the current folder and subfolders:
Code:
attrib -h *.* /s
Show all files and folders in the current folder and subfolders:
Code:
attrib -h *.* /s /d
Show all files in the current folder and subfolders:
Code:
attrib -h *.* /s
Show a file in the path folder specified in a variable and subfolders that matches a specified file name:
Code:
set we=c:\users
attrib -h %we%\desktop.ini /s /d

Use +h to hide.

All can be applied from setupcomplete.cmd
 
Its nice when people can find stuff here instead of having to search online. Thank you. :)
You're welcome!

I got many from trial and error and checking the help, today i needed to hide bad gpt partitions (contains bad and slow sectors) and checked the 'diskpart' help but searched online and found something different (didn't tried the online command).

You can also have an oobe.cmd file with the commands instead of setupcomplete.cmd, NTLite reads commands in setupcomplete.cmd when it already exists, oobe.cmd runs before setupcomplete.cmd
 
I can alwaays find an answer to my question online but if i think it may benefit other users then i will post here and between nuhi abbodi and you we always get great answers that work. Its why i ask you and abbodi to post examples. :)
 
Back
Top