Steven,
put another set of quotes around the filename with spaces:
pdm_var.oProcess.Run("C:\ccdraft\bin\ccplot.exe -rk 'C:\docume~1\sde\locals~1\temp\pdm docs\tempjan.bat' ", 2,.T.)
>I am trying to use the WinScrip Run command but I am having trouble with my command parameter string having spaces in it.
>
>This works:
>pdm_var.oProcess.Run("C:\ccdraft\bin\ccplot.exe -rk C:\temp\tempjan.bat",2,.T.)
>
>This Doesn't:
>pdm_var.oProcess.Run("C:\ccdraft\bin\ccplot.exe -rk C:\docume~1\sde\locals~1\temp\pdm docs\tempjan.bat", 2,.T.)