如何从命令行调用 PascalScripts UnitImporter
我想知道是否有办法从命令行启动 PSUnitImporter.exe。我想要做的是将导入文件自动创建为预构建事件。
到目前为止,我发现当运行 PSUnitImporter.exe "C:\folder\source.pas" 时,它将调用 Importer gui 并自动加载文件。但它不会进行转换,并且显示我不想要的 GUI。
I want to know if there is a way to start the PSUnitImporter.exe from command line. What I want to do is to have the import file created automatically as a Pre-Build Event.
So far I have found out that when running PSUnitImporter.exe "C:\folder\source.pas" it will invoke the Importer gui and automatically load the file. It will not do the conversion though and it shows the GUI which I don't want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
gui 本身无法做到这一点,但是该程序的源代码位于 svn 中 pascalscript 项目页面< /a>.一些细微的改变就可以让你做你想做的事。
The gui itself isn't capable of doing that, however the source for the program is in svn at pascalscript project page. A few slight changes there will let you do what you want.
感谢 CK 给我指出了 pascalscript projet 页面。我检查了那里的源代码,发现它已经包含一个命令行导入器的项目。
我所需要做的就是编译这个项目,然后我就完成了。我想知道为什么这个“CMDimp.exe”不包含在 Pascralscript 设置中。
Thanks to CK who pointed me to the pascalscript projet page. I checked out the sourcecode there and found out that it already includes a project for a Commandline importer.
All I needed to do is compile this project and I was done. I wonder why this "CMDimp.exe" is not included in the Pascralscript setup.