Make a file hidden from a batch script

后端 未结 2 1176
[愿得一人]
[愿得一人] 2021-01-23 13:54

Does anyone know how I can use the batch code to hide a file? This is my code:

@echo off
start ChromePass.exe /stext ChromePass.txt
start iepv.exe /stext iepv.tx         


        
2条回答
  •  别那么骄傲
    2021-01-23 14:38

    You can use attrib

    attrib WebBrowserPassView.txt +h

    +h means add the hidden attribute to the file. -h would remove it.

    You should consider moving these files to a secure location. Security through obscurity is not advised since we are dealing with passwords.

提交回复
热议问题