From 63610ecfbe9096d3f0403d6099a33dbb7ae8830b Mon Sep 17 00:00:00 2001 From: Siep Kroonenberg Date: Sun, 19 Jul 2020 13:10:13 +0000 Subject: psviewer: spaces in filenames git-svn-id: svn://tug.org/texlive/trunk@55872 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/psviewer/psviewer.vbs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/scripts/psviewer') diff --git a/Master/texmf-dist/scripts/psviewer/psviewer.vbs b/Master/texmf-dist/scripts/psviewer/psviewer.vbs index 3df3ca29a53..651093c4656 100644 --- a/Master/texmf-dist/scripts/psviewer/psviewer.vbs +++ b/Master/texmf-dist/scripts/psviewer/psviewer.vbs @@ -48,17 +48,17 @@ End If ' create temporary pdf If LCase( Right( fname, 4 )) = ".eps" Then If oWsh.run( "kpsewhich -format texmfscripts epstopdf.pl", 0, true ) = 0 Then - oWsh.run "epstopdf " & oArgs( 0 ) & " " & tf, 0, true + oWsh.run "epstopdf """ & f & """ """ & tf & """", 0, true Else - oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -dEPSCrop -sOutputFile#" & tf & " -f " & f, 0, true + oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -dEPSCrop ""-sOutputFile#" & tf & """ -f """ & f & """", 0, true End if Else - oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite -sOutputFile#" & tf & " -f " & f, 0, true + oWsh.run "gswin32c -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE#pdfwrite ""-sOutputFile#" & tf & """ -f """ & f & """", 0, true End If ' open temporary pdf If oFS.fileexists(tf) Then - oWsh.run( tf ) + oWsh.run( """" & tf & """" ) Else MsgBox f & " could not be converted," & vbcrlf & _ "is probably not valid PostScript", 0, "Error" -- cgit v1.2.3