使ghostscript接收名称中带有空格的文件(例如“我的文档"中的内容) [英] getting ghostscript to take in files with spaces in their name (like something in "my documents")
本文介绍了使ghostscript接收名称中带有空格的文件(例如“我的文档"中的内容)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行此命令以使用ghostscript(来自Java),但是无论是单引号'还是还是什么都没有,我都会收到错误消息
I'm trying to run this command to use ghostscript (from java) but Whether with single quote ' or " or nothing at all I get an error
Error: /undefinedfilename in ('c:\\Documents)
gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffgray -sOutputFile=C:\polter.tiff -r300 'c:\Documents and Settings\polter.pdf' -c quit
有什么想法吗?
推荐答案
使用文件夹的简称.短名称是使用8.3格式的别名.您可以在命令提示符下使用dir /x
命令找到文件夹的简称.您的路径将如下所示:c:\docume~1\polter.pdf
use the short names for folders. short names are aliases which are using the 8.3 format. you can find the short name of a folder by using the dir /x
command on the command prompt. your path will then look something like this: c:\docume~1\polter.pdf
这篇关于使ghostscript接收名称中带有空格的文件(例如“我的文档"中的内容)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文