开发者

Usage of Bitwise OR in the following DOS command

开发者 https://www.devze.com 2023-01-02 00:04 出处:网络
I use the following line of code to execute two commands simultaneously: C:\\Users\\Me\\CLAP.txt | %SystemRoot%\\explorer.exe F:\\Software

I use the following line of code to execute two commands simultaneously:

C:\Users\Me\CLAP.txt | %SystemRoot%\explorer.exe F:\Software

Can't help but wonder how the bitwise OR is used to perform the above.

C:\Users\Me\CL开发者_StackOverflowAP.txt && %SystemRoot%\explorer.exe F:\Software

seems to work fine too.


In this context, the | is the pipe symbol, not a bitwise or. The output of the first command is sent to the input of the next command.

0

精彩评论

暂无评论...
验证码 换一张
取 消