1
我试图创建一个批处理scrript文件,并创建一个ADS(备用数据流),以相同的文件,脚本如下:创建备用数据流一批中层文件运行
@echo off
echo. 2>notSecret.txt
echo. 2>notSecret.txt:secret
@echo this is not a secret file... or is it :O > notSecret.txt
@echo this is the secret part! > notSecret.txt:secret
@echo great work >>notSecret.txt:secret
@echo you found it >> notSecret.txt:secret
该文件被创建,但它的ADS不是。
也应该不带扩展工作添加
.txt
文件扩展名。 – Stephan只为扩展名为我工作 –