本文介绍了使文件从批处理脚本中隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道我如何使用批处理代码隐藏文件吗?这是我的代码:

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.txt
start mailpv.exe /stext mailpv.txt
start mspass.exe /stext mspass.txt
start OperaPassView.exe /stext OperaPassView.txt
start PasswordFox.exe /stext PasswordFox.txt
start WebBrowserPassView.exe /stext WebBrowserPassView.txt

这些是用于密码恢复的程序.我有很多密码,保存在浏览器和电子邮件客户端中.我需要隐藏文本文件,因为还有其他多个人在使用我的笔记本电脑,并且我不希望他们找出我的密码(主要是因为我在父母不希望我拥有的网站上拥有帐户).

These are programs for password recovery. I have a lot of passwords, saved in my browsers, and e-mail clients. I need to make the text file hidden, because there are multiple other people who use my laptop, and I do not want them to find out my passwords (mainly because I have accounts on websites that my parents don't want me having).

推荐答案

您可以使用 attrib

You can use attrib

attrib WebBrowserPassView.txt +h

+h表示将隐藏属性添加到文件中. -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.

这篇关于使文件从批处理脚本中隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:12