^C^C(startapp "explorer" "C:/Version_5.2.pdf")
That doesn't work very well. It opens up the My Documents window and just prints a 33 to the command line.
That doesn't work very well. It opens up the My Documents window and just prints a 33 to the command line.
If the file can be found, it will open the file using the default program associated with the file extension.
Google chrome will open a PDF too.
(command "start" (strcat yourpathhere "ARCH_FILE.PDF"))
I just thought there was a better way to open a browser url.
I just thought there was a better way to open a browser url.
(defun _openfileinchrome (file / sa)
(and (findfile file)
(setq sa (vlax-get-or-create-object "Shell.Application"))
(null (vlax-invoke sa 'shellexecute "chrome.exe" file))
(vlax-release-object sa)
)
)
(_openfileinchrome "c:\\test.pdf")
I just thought there was a better way to open a browser url.
Actually, this might be better:Code - Auto/Visual Lisp: [Select]
(list ) ) )Code - Auto/Visual Lisp: [Select]
(browser "C:/Version_5.2.pdf#View=FitV&nameddest=Chapter3")
I only have IE on my machine.
This works great Lee. Thanks.
I only have IE on my machine. I am wondering how the order of the list will effect users that have ie, firefox, and chrome?
I only have IE on my machine.
Wow, sometimes it seems like I just don't know you anymore.
Or using the default browser as per the registry.
Good idea Irné; though, I thought the default browser would be located using the following:That's true, but there's actually a problem on Windows. There are 5 different places in registry where this is saved:
... included a "=" chracter on the folder names [for some bizzare resons]
startapp function wont be able to find the correct path. [so it may seems...]
(setq filename "c:\\temp\\folder=new\\readme.txt")
(strcat (chr 34) filename (chr 34))
Surround the pathing in quotations.Or just?Code: [Select](setq filename "c:\\temp\\folder=new\\readme.txt")
(strcat (chr 34) filename (chr 34))
.....Egad! .. you are right.. [Ding..ding..ding] 10 points for the house of CADDOG :)
Actually, the problem comes from the called application's parameter parsing, and not startapp.