Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1751

How to get the OS path of a file?

From Wolfgang Büchel <wolfgang.buechel@gmx.de>
Newsgroups comp.lang.postscript
Subject How to get the OS path of a file?
Date 2013-12-20 10:00 +0100
Organization gvp
Message-ID <op.w8dvakdhhytalj@zenon.fritz.box> (permalink)

Show all headers | View raw


I have a PS file (main.ps) in which I include an EPS file (image.eps) with

save
%%BeginDocument: image.eps
%(image.eps) run                (1) or
(path/to/file/image.eps) run    (2)
%%EndDocument
restore

Method (1) works in editor SciTE (path of file image.eps can be
found from ghostscript), but in DOS shell (command.com, Windows 7) I get  
an error message
(No such file or directory) from ghostscript (v.9.10). Method (2) works in  
both cases.

If I wanted to copy the two files to another place I would have to
change the path/to/file in main.ps **by hand**.

Now my question: Does anybody know how to get the path of a file  
**automatically** (from the OS) as a string  that I could use in main.ps?

Wolfgang Buechel

-- 
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/

Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to get the OS path of a file? Wolfgang Büchel <wolfgang.buechel@gmx.de> - 2013-12-20 10:00 +0100
  Re: How to get the OS path of a file? luser- -droog <mijoryx@yahoo.com> - 2013-12-21 15:55 -0800

csiph-web