绿色,单文件,放在哪个目录下,就在哪个目录下生成垃圾数据,直到写满空间。然后删除,再写,可以设置写入次数。
LINUX上一行命令就能解决 https://hostloc.com/thread-1107199-1-1.html
WIN上powershell写完成相同的功能吗?
热议
推荐楼 我是傻瓜 昨天20:22
正在思考,请等待......
方法一:
1、在命令提示符中,输入“fsutil file createnew”命令,创建一个大小为1G的文件,文件名为“test.dat”,命令格式为:
fsutil file createnew test.dat 1073741824
2、使用“for”循环命令,按照指定次数循环执行创建垃圾文件的命令,如果要创建100次,则命令格式为:
for /L %i in (1,1,100) do fsutil file createnew test_%i.dat 1073741824
3、使用“del”命令,删除垃圾文件,如果要删除所有垃圾文件,则命令格式为:
del /s test_*.dat
方法二:
1、在cmd中输入“fsutil file createnew”命令,创建一个大小为1G的文件,文件名为“test.dat”,命令格式为:
fsutil file createnew test.dat 1073741824
2、使用“for”循环命令,按照指定次数循环执行创建垃圾文件的命令,如果要创建100次,则命令格式为:
for /L %i in (1,1,100) do fsutil file createnew test_%i.dat 1073741824
3、使用“copy”命令,将垃圾文件复制到指定目录,如果要复制到D盘根目录,则命令格式为:
copy test_*.dat D:\
4、使用“del”命令,删除垃圾文件,如果要删除所有垃圾文件,则命令格式为:
del /s test_*.dat
推荐楼 HOH 昨天19:33
好好反思一下为什么你不知道dd有win版?
推荐楼 youhei 昨天14:14
3楼 zxxx 昨天19:30
WIN上powershell应该可以实现相同的功能
5楼 lamb 昨天19:37
我猜你应该是想擦除痕迹,wise365
6楼 小号 昨天19:56
你做了啥坏事?
https://learn.microsoft.com/zh-CN/troubleshoot/windows-server/windows-security/use-cipher-to-overwrite-deleted-data
7楼 偷我号的人去死 昨天19:58
用微波炉不好吗
8楼 我是傻瓜 昨天20:17
估计是公司的电脑
10楼 zxxx 昨天20:42
“fsutil file createnew”命令 创建的是稀疏文件吧
12楼 simonw 昨天22:57
你做了啥坏事?
https://learn.microsoft.com/zh-CN/troubleshoot/windows-server/windows-security/use-c ...
试了 不好用 写了几个G就中断
13楼 simonw 昨天23:00
正在思考,请等待......
方法一:
卧槽NB 不过 能不能再加个判断写满的功能 空间满了 就删除 不然还得指定数字
14楼 zxxx 半小时前
https://www.catapultsystems.com/blogs/powershell-create-randomfiles-ps1/
PowerShell Create-RandomFiles.ps1
Create-RandomFiles.ps1 with the following changes
Added a Progress indicator
files are created with different sizes
TotalSize defaults to MB
added optional name prefix
added execution statistics
replaced fsutil.exe with New-Object byte[]
Run the following command to create a dummy file dummy10mb.txt with random content
- New-bigfile c:\temp\lf\dummy10mb.txt 10 random -Verbose
Run the following command to create a dummy file of 20 MB filled with zeros
- New-bigfile c:\temp\lf 20 empty-Verbose
If you prefer to see what is going on, add the -Showprogress option.
And last but not least the function also supports the -whatif option.
16楼 simonw 半小时前
https://www.verboon.info/2014/01/powershell-creating-dummy-files/
PowerShell – Creating Dummy file ...
如果能 检查一下剩余空闲空间直到把空间填满然后删除然后再循环这样指定的次数 就好了 手工指定这些参数还有麻烦些
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。
评论前必须登录!
立即登录 注册