批处理文件:从未知文件中读取并激活命令 [英] Batch file: Reading and activate commands from unknown files
问题描述
我知道标题是没有道理的,但我有一个问题。我做了这个文件称为TEST.bin,烧写和这里的什么.bin文件里面:
I know the title doesn't make sense, but I have one question. I have made this file called Test.bin and here's whats inside the .bin file:
回声的Hello World
echo Hello World
自测试文件,我一直想看看我是否能制造出能在.bin文件,并输出到控制台读取的命令的批处理文件。
Since its a test file, I've been trying to see if i can make a batch file that can read the commands in the .bin file and output it onto the console.
推荐答案
不知道你正在尝试做的完全是,但我认为你有两个选择:
Not sure what you are trying to do exactly, but I think you have two options:
重命名为TEST.bin,烧写的test.bat并运行它:
Rename test.bin as test.bat and run it with:
test
开始一个新的命令间preTER并发送你的命令:
Start a new command interpreter and send it your commands:
cmd < test.bin
这篇关于批处理文件:从未知文件中读取并激活命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!