2017-07-03 31 views
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不是。

回答

0

我们需要的ADS呼应

@echo off 

echo this is not a secret file... or is it :O > notSecret.txt 

echo this is the secret part! > notSecret.txt:Secret.txt 
+1

也应该不带扩展工作添加.txt文件扩展名。 – Stephan

+0

只为扩展名为我工作 –