how to make a hidden file in python
import os
# making a file called myFile.txt
open('myFile.txt', 'w')
# giving the file an attribute for hidden
os.system("attrib +h myFile.txt")
how to make a hidden file in python
import os
# making a file called myFile.txt
open('myFile.txt', 'w')
# giving the file an attribute for hidden
os.system("attrib +h myFile.txt")
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us