이 코드를 실행 해보십시오. 새 파일 인 output1.txt를 만든 다음 해당 파일을 읽고 output2.txt 파일에 다시 씁니다. everyting가 올 경우,이 개 파일이 있어야합니다 그렇지 않으면 파일이 실패 할 경우,이 하나를 시도
/outfile1 (output1.txt) (w) file def
outfile1 (blah blah blah) writestring
outfile1 closefile
/inputfile (output1.txt) (r) file def
inputfile 100 string readstring
pop
inputfile closefile
/outfile2 (output2.txt) (w) file def
outfile2 exch writestring
outfile2 closefile
승으로 시도되는 경우에 대한 쓰기 권한이 없습니다. 이것이 작동하면 기본 위치가 쓰기 가능하지는 않지만 명시 적 경로는 쓰기가 가능하다는 것을 보여줍니다. 그렇지 않으면 쓰기를 허용하지 않는 고스트 스크립트입니다.
/outfile1 (c:\\output1.txt) (w) file def
outfile1 (blah blah blah) writestring
outfile1 closefile
/inputfile (c:\\output1.txt) (r) file def
inputfile 100 string readstring
pop
inputfile closefile
/outfile2 (c:\\output2.txt) (w) file def
outfile2 exch writestring
outfile2 closefile
GSView/Options를 통해 Ghostscript의 시작 명령에 -dNOSAFER-string을 넣었습니다. 이제는 ps-Program이 정상적으로 작동합니다! – enricoernesto