/build/static/layout/Breadcrumb_cap_w.png

Launch a word document using Wise or VB script

I want to launch a word document (.doc) by using Wise or VBscript . I am unable to do so . Anyone who can help me please ?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: spartacus 17 years ago
Black Belt
0
In VB Script, the following code will open the file test.doc from the C:\test folder :

[font="Courier New"]Set objWord = CreateObject("Word.Application")
objWord.Visible = True

Set objDoc = objWord.Documents.Open("c:\test\test.doc")


Regards

Spartacus
Posted by: karan_gupta 17 years ago
Orange Belt
0
Thanks for the script buddy , But when i launch the file using this script it displays the formatting also . Is there a way in which i can launch the file without formatting .
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ