如何在node.js child_process exec命令中使用“&”?

我正在使用child_process从我的服务器上连接的Windows客户端启动软件。 一般情况下工作就像一个魅力,但在一个我有一个“&”标志,失败的命令启动。

有没有办法摆脱这种特殊的字符?

这是我的命令的一个例子:

var exec = require('child_process').exec, child; child = exec('C:/Programs/program.exe /Callback:other&program.exe /Start'); 

有一个约束:我不能使用/Callback:"other&program.exe“因为program.exe是不聪明的,以逃避”的迹象

艾康Mogwai说(感谢他):

使用^来掩盖&号。

这对于child_process exec命令有效。