PostScript 如何找到其完整的 Windows 文件名?
我正在寻找一种解决方法来解决 PostScript 明显无法使用相对 Windows 文件名的问题。是否有一些 PS 命令序列可以查找当前使用的 Windows 目录?
I'm looking for a workaround to PostScript's apparent inability to use relative windows filenames. Is there some PS command sequence to find the current windows diretory in use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Ken 所说,PostScript 本身无法发现此信息。如果您在 PostScript 程序中需要此信息,那么您需要以某种方式传递它。使用 Ghostscript,您可以执行类似
gs -sCWD=`cwd` myprogram.ps
的操作。然后程序可以通过CWD
或/CWD load
来访问该字符串。As Ken comments, PostScript itself has no way to discover this information. If you need this information inside the PostScript program, then you'll need to pass it in somehow. With ghostscript, you could do something like
gs -sCWD=`cwd` myprogram.ps
. And then the program can access the string asCWD
or/CWD load
.