summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/psviewer
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2020-07-19 13:10:13 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2020-07-19 13:10:13 +0000
commit63610ecfbe9096d3f0403d6099a33dbb7ae8830b (patch)
tree91a81e9c5a66dce042cc2108fe3045de814a942e /Master/texmf-dist/scripts/psviewer
parent2a5bace23fb9b73869a3d9e1e2f1d0e5fb49e816 (diff)
psviewer: spaces in filenames
git-svn-id: svn://tug.org/texlive/trunk@55872 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/psviewer')
-rw-r--r--Master/texmf-dist/scripts/psviewer/psviewer.vbs8
1 files changed, 4 insertions, 4 deletions
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"