summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/psviewer
diff options
context:
space:
mode:
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"