forked from p15670423/monkey
Windows: change location of hidden file/folder + add system attribute
This commit is contained in:
parent
87bfe41c50
commit
a98f321ed0
|
@ -1,6 +1,6 @@
|
||||||
HIDDEN_FILE = "%temp%\\monkey-hidden-file"
|
HIDDEN_FILE = "%homepath%\\monkey-hidden-file"
|
||||||
HIDDEN_FILE_WINAPI = "%temp%\\monkey-hidden-file-winAPI"
|
HIDDEN_FILE_WINAPI = "%homepath%\\monkey-hidden-file-winAPI"
|
||||||
HIDDEN_FOLDER = "%temp%\\monkey-hidden-folder"
|
HIDDEN_FOLDER = "%homepath%\\monkey-hidden-folder"
|
||||||
|
|
||||||
|
|
||||||
def get_windows_commands_to_hide_files():
|
def get_windows_commands_to_hide_files():
|
||||||
|
@ -10,8 +10,9 @@ def get_windows_commands_to_hide_files():
|
||||||
'>',
|
'>',
|
||||||
HIDDEN_FILE,
|
HIDDEN_FILE,
|
||||||
'&&',
|
'&&',
|
||||||
'attrib', # change file attributes
|
'attrib', # change file attributes
|
||||||
'+h', # make hidden
|
'+h', # hidden attribute
|
||||||
|
'+s', # system attribute
|
||||||
HIDDEN_FILE,
|
HIDDEN_FILE,
|
||||||
'&&',
|
'&&',
|
||||||
'type',
|
'type',
|
||||||
|
@ -25,7 +26,8 @@ def get_windows_commands_to_hide_folders():
|
||||||
HIDDEN_FOLDER, # make directory
|
HIDDEN_FOLDER, # make directory
|
||||||
'&&',
|
'&&',
|
||||||
'attrib',
|
'attrib',
|
||||||
'+h',
|
'+h', # hidden attribute
|
||||||
|
'+s', # system attribute
|
||||||
HIDDEN_FOLDER, # change file attributes
|
HIDDEN_FOLDER, # change file attributes
|
||||||
'&&',
|
'&&',
|
||||||
'echo',
|
'echo',
|
||||||
|
@ -60,12 +62,12 @@ def get_winAPI_to_hide_files():
|
||||||
|
|
||||||
def get_windows_commands_to_delete():
|
def get_windows_commands_to_delete():
|
||||||
return [
|
return [
|
||||||
'del', # delete file
|
'del', # delete file
|
||||||
'-Force', # force delete
|
'-Force', # force delete
|
||||||
HIDDEN_FILE,
|
HIDDEN_FILE,
|
||||||
HIDDEN_FILE_WINAPI,
|
HIDDEN_FILE_WINAPI,
|
||||||
'&&',
|
'&&',
|
||||||
'rmdir', # delete folder
|
'rmdir', # delete folder
|
||||||
'-Force',
|
'-Force',
|
||||||
HIDDEN_FOLDER
|
HIDDEN_FOLDER
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue