Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: get root path python 
Python :: plt.tick_params 
Python :: django admin.py all fields 
Python :: how to sort a list of dictionary by value in descending order? 
Python :: zscore python 
Python :: shutdown flask server with request 
Python :: list comprehension if 
Python :: python do while 
Python :: python pdf fpdf example 
Python :: how to move tkinter images 
Python :: jpython 
Python :: isolate row based on index pandas 
Python :: how to print answer 2 decimal places in python 3 
Python :: STATIC_ROOT 
Python :: python find in list 
Python :: numpy linspace 
Python :: Get files from S3 bucket Python 
Python :: date strftime python 
Python :: separate a string in python 
Python :: plotly vertical bar chart 
Python :: how to make an infinite loop python 
Python :: colorbar font size python 
Python :: how to convert binary to text in python 
Python :: python - remove floating in a dataframe 
Python :: pandas pass two columns to function 
Python :: django static files 
Python :: effektivwert python 
Python :: setting urls 
Python :: sys.path.append python 
Python :: python json normalize 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =