繁体   English   中英

如何在Windows OS 7中从命令行运行因素文件?

[英]how to run factor file from command line in windows os 7?

因素文件是: C:\\Users\\Administrator\\Desktop\\test.factor

"Hello, world" print

然后如何从命令行运行它,我已经安装了factor,factor.exe和factor.com在$ PATH中。

我不想启动因子ui,只想运行此文件并将输出打印到stdout。

我已经使用fator.exe -run test.factor进行了测试,该因素文件是:

USE: io
IN: hello-world

: hello ( -- ) "Hello world" print ;

MAIN: hello

但没有任何输出到标准输出。

在此处输入图片说明

例如,使用脚本test.factor ,您可以调用:

因子运行test.factor

USE: io
IN: hello-world

: hello ( -- ) "Hello world" print ;

MAIN: hello

输出:

你好,世界

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM