🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #47

absolute file path on Windows

#47
From: reakt.
Date: Tue, 10 Mar 2009 04:31
13 lines
1284 bytes
Hello, I have a postscript program which needs to output some text to a file. I declare the filename like so:

/tmpfile (input.mrd) (w) file def

Currently, it outputs to that file name in the same directory that I run the postscript program. I need it to output to a different directory, outside of where I am running the program. For example, I might want to output to "C:\Myfolder\input.mrd".

I have tried several different ways of declaring the file, such as
/tmpfile (C:\Myfolder\input.mrd) (w) file def, or
/tmpfile (C:/Myfolder/input.mrd) (w) file def, or
/tmpfile (Myfolder\input.mrd) (w) file def, or
/tmpfile (C:\\Myfolder\\input.mrd) (w) file def.. etc.

but none of those work. Any help would be greatly appreciated. Thank you.
Technical Details
Message-ID: <59b82b1e.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,59af3c2c484ccdc2,start
X-Google-Attributes: gid10c61a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: reakt.@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.postscript.programming
Subject: absolute file path on Windows
Message-ID: <59b82b1e.-1@webcrossing.la2eafNXanI>
Date: Mon, 9 Mar 2009 21:31:06 -0700
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit