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_WINAPI = "%temp%\\monkey-hidden-file-winAPI"
|
||||
HIDDEN_FOLDER = "%temp%\\monkey-hidden-folder"
|
||||
HIDDEN_FILE = "%homepath%\\monkey-hidden-file"
|
||||
HIDDEN_FILE_WINAPI = "%homepath%\\monkey-hidden-file-winAPI"
|
||||
HIDDEN_FOLDER = "%homepath%\\monkey-hidden-folder"
|
||||
|
||||
|
||||
def get_windows_commands_to_hide_files():
|
||||
|
@ -11,7 +11,8 @@ def get_windows_commands_to_hide_files():
|
|||
HIDDEN_FILE,
|
||||
'&&',
|
||||
'attrib', # change file attributes
|
||||
'+h', # make hidden
|
||||
'+h', # hidden attribute
|
||||
'+s', # system attribute
|
||||
HIDDEN_FILE,
|
||||
'&&',
|
||||
'type',
|
||||
|
@ -25,7 +26,8 @@ def get_windows_commands_to_hide_folders():
|
|||
HIDDEN_FOLDER, # make directory
|
||||
'&&',
|
||||
'attrib',
|
||||
'+h',
|
||||
'+h', # hidden attribute
|
||||
'+s', # system attribute
|
||||
HIDDEN_FOLDER, # change file attributes
|
||||
'&&',
|
||||
'echo',
|
||||
|
|
Loading…
Reference in New Issue