Batch file 创建备用数据流中批处理文件运行
我正在尝试在批处理scrript中创建一个文件,并为同一个文件创建一个ADS(备用数据流),脚本如下所示:Batch file 创建备用数据流中批处理文件运行,batch-file,ads,Batch File,Ads,我正在尝试在批处理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 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未创建。我们需要向ADS回显添加一个
.txt
文件扩展名
@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
我们需要向ADS echo添加一个
.txt
文件扩展名
@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
只对扩展名有效whatsover不需要为流名称使用扩展名。语法为
filename:streamname:streamtype
请参阅仅适用于我的扩展名。对于流名称,不需要使用扩展名。语法为filename:streamname:streamtype
请参阅