Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open In App
#3
This works with most programs:

Code:
Copy      Help
run "...app.exe" "...document.doc"

Sometimes may need to enclose in quotes, especially if contains spaces:

Code:
Copy      Help
run "...app.exe" "''...document.doc''"

Sometimes the path must not contain spaces, and quotes are not supported. Then make short path:

Code:
Copy      Help
str s
s.dospath("...doc ume nt.doc")
run "app.exe" s

Sometimes the command line must (or can) include something more. When a document type is associated with a program, you can see the command line in the registry, HKEY_CLASSES_ROOT. Replace %1 with the document path.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)