OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Open a MSWord Document from the command line

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
vicentealves
Newbie
Newbie


Joined: 20 Apr 2007
Posts: 1

PostPosted: Fri Apr 20, 2007 1:48 am    Post subject: Open a MSWord Document from the command line Reply with quote

I'm trying to open a MSWord document that's password protected from the command line in Windows XP. I would like to open it without prompting the user for the password. Is that possible? Can I create a script?
Back to top
View user's profile Send private message
acknak
Moderator
Moderator


Joined: 13 Aug 2004
Posts: 4295
Location: ~ 40°N,75°W

PostPosted: Fri Apr 20, 2007 12:11 pm    Post subject: Reply with quote

So you want to open a password-protected document without giving the password? Or you want to somehow supply the password on the command line? Either way, the whole point of having a password on the document is rather bypassed. Why don't you just not password-protect the original document, or remove the password?

Have you tried a URL (including the password) on the command line, instead of a simple file path?

If that doesn't work, I suspect it will require some macro or application programming, and you should ask on the Macros & API forum.
Back to top
View user's profile Send private message
Mark B
Super User
Super User


Joined: 16 Feb 2007
Posts: 852
Location: Lincolnshire, UK

PostPosted: Fri Apr 20, 2007 1:56 pm    Post subject: Reply with quote

The answer to your question is "Yes - a macro will do the job"? But the question I've got to ask is - why? You'll have to hard code the password into the macro - completely removing the point of having the password there in the first place.

Mark
_________________
Mark B's Articles
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group