1 Reply Latest reply on Jun 17, 2008 11:29 AM by ImLearningW3D

    opening a file with an associated application

    ImLearningW3D
      Ok, I have a project where I have to open a file or files with the associated application on a local system. I have tried the "open" command in lingo, the "ApplicationXtra.x32" xtra, "BuddyAPI" xtra and the "FileXtra4" xtra. Each will open the application but none will open the file path and name sent in the argument; assuming any of the folders in the path or the filename itself has spaces in it.

      Here is an example of the code used for the lingo "open" command:
      open "E:\Working\PlotViews for Cleveland.dwg" with "E:\Program Files\ACAD2000\acad.exe"

      Here is an example of the code used for the "ApplicationXtra.x32":
      RunApp = new(xtra "ApplicationXtra")
      RunApp.RunApp("E:\Program Files\ACAD2000\acad.exe","E:\Working\PlotViewsforCleveland.dwg")

      Here is an example of the code used for the "BuddyAPI":
      ok = baShell( "open", "E:\Program Files\ACAD2000\acad.exe", "E:\Working\PlotViews for Cleveland.dwg" , "E:\Working\", "normal" )

      And here is an example of the code used for the "FileXtra4":
      FX = new xtra("FileXtra4")
      FX.fx_FileRunApp("E:\Program Files\ACAD2000\acad.exe E:\Working\PlotViews for Cleveland.dwg")

      All of these crap out when there is a space anywhere in the path or filename. Can anyone point me in the right direction?

      Thanks for the help.