PostScript 如何找到其完整的 Windows 文件名?

发布于 2025-01-12 23:12:18 字数 91 浏览 3 评论 0原文

我正在寻找一种解决方法来解决 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

带刺的爱情 2025-01-19 23:12:18

正如 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 as CWD or /CWD load.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文