sb-ext的Args:运行程序 [英] Args for sb-ext:run-program

查看:78
本文介绍了sb-ext的Args:运行程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我 sb-ext的args参数应该是什么样的:运行程序

如果我这样做:

(sb-ext:run-program "C:/Program Files/iTunes/iTunes.exe" 
               "C:/lispbox-0.7/opus.mid")

我收到此错误:

debugger invoked on a TYPE-ERROR:
  The value "C:/lispbox-0.7/opus.mid" is not of type LIST.

但是,如果我这样做:

(sb-ext:run-program "C:/Program Files/iTunes/iTunes.exe" 
               (list "C:\lispbox-0.7\opus.mid"))

iTunes将打开,但是MIDI文件无法播放,即使从Windows命令提示符正常运行:

iTunes opens, but the MIDI file doesn't play, even though this invocation from the Windows command prompt works just fine:

U:\>"C:\Program Files\iTunes\iTunes.exe" C:\lispbox-0.7\opus.mid

斜线):

CL-USER> (sb-ext:run-program "C:/Program Files/iTunes/iTunes.exe" 
               (list "C:/lispbox-0.7/opus.mid"))

具有相同的效果:iTunes打开,但文件未播放。

has the same effect: iTunes opens, but the file is not played.

推荐答案

在列表版本中,您使用单个反斜杠,这些反斜杠被解析为转义序列。您需要使用双反斜杠。

In the list version you're using single backslashes, which get parsed as escape sequences. You need to use double backslashes.

这篇关于sb-ext的Args:运行程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆