Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python file hidden

# os module
import os

# you can use the current directory you are in
fileName = "myFile.txt"

# or a different one with a path
fileName = "C:/Windows/myFile.txt"

# send in cmd
os.system("attrib +h " + fileName)
# +h for hidden
# -h for unhidden
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #file #hidden
ADD COMMENT
Topic
Name
7+9 =