Launch html using tcl script
Hi All,
I wanted to create a button for help for one of the macro in hypermesh. The intension is to make it easier for the user to get the procedure for macro at one click on hypermesh window.
I have thought of calling a html page as one of the feasible method to do this. Please suggest if any of you have other thoughts in order to execute this(May be directly launch a ppt from hypermesh or something like that).
Is it possible to launch a html page using tcl. In that case, i am done with my job because it is easy for me to convert my pptx to html page.
Below is the link that i could find with the help of google. However, i was not able to execute my requirement with this. This may be of some help to you.
Thanks in advance,
Prasad poduval
Answers
-
hope this could help you :
How can I launch a document or URL?
To start up an application associated with a file or URL, invoke the Windows cmd.exe internal start command. For example,
% exec {*}[auto_execok start] '' myfile.doc &
% exec {*}[auto_execok start] '' http://www.google.com &0 -
Thanks for your reply.
Infact i have some more doubts on the 'exec' command. I have pasted some text from one of the document that i referred before i get into problem statement.
Tcl supports both drive-relative and UNC style names. Both / and \ may be used as directory separators in either type of name. Drive-relative names consist of an optional drive specifier followed by an absolute or relative path. UNC paths follow the general form \\servername\sharename\path\file
Keeping the above statement as reference, i was trying to execute a ppt file from the server location, but unable to do the same. I have given the problem statement below with example.
exec {C:/Program Files/Microsoft Office/Office15/POWERPNT.EXE} - \\SERVER\file -path\filename.pptx
The above line does launch the ppt, but unable to load the file in the server path given(Gives an error saying 'sorry,unable to read the ppt file'). I have even checked changeing '\' in the server path to '/'. If i replace the server path with some local file path(offcourse with a ppt file with filename placed in the local path) the above line launches the ppt and loads the file as well.
i.e..exec {C:/Program Files/Microsoft Office/Office15/POWERPNT.EXE} - E:/Projects/macro-work/filename.pptx
I wonder if this is the problem with syntax that i am using to specify a server location. Someone please help me on this.
Thanks in advance,
Prasad Poduval
0 -
Hello Poduval
the syntax should be like this
exec {C:/Program Files/Microsoft Office/Office15/POWERPNT.EXE} \\\\SERVER\\filepath\\filename.pptx
i think due to after launch powerpnt, the path should be conformed with powerpnt
type in 'E:/Projects/...' just a special case
path of powerpnt is used by tcl but path of the file is not
0