Re: How can I start a word document minimized?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Sat, 26 Nov 2005 06:19:02 -0800, "Niki"
<Niki@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>I have placed a word document in my start up batch files so that it comes up
>with windows (xp) -- the document also requires a password from me to open --
>however, I would like it not to start in an open window, but instead to run
>minimized in the taskbar -- (this used to happen from a pif ...but does it
>still exist and how can I access it...not even sure it could be accessed for
>a document....?) does anyone know of anyway to do this? Thanks...

Hi Niki,

First, put the document itself in some other folder, and put a
shortcut to the file into the Startup folder under Start | Programs.
(No batch files are involved here -- you can't do this with a batch
file.)

Open the shortcut's Properties dialog. In the Target box, enter the
path to the WinWord.exe file, enclosed in double quotes, before the
path to the document. It will look something like this, but all one
line:

"C:\Program Files\Microsoft Office\Office11\WinWord.exe" "C:\Documents
and Settings\Niki\My Documents\My Document.doc"

Then set the Run box to "Minimized", and click OK to close the dialog.
When Windows starts, the Word window will be minimized. The password
entry box will pop up immediately, but when you enter the password and
click OK the document will stay minimized. If you cancel the password
box, Word will stay minimized but will contain a blank document.

If you set the shortcut to run Minimized but don't put the reference
to WinWord.exe into the Target box, Word will start minimized but will
open to Restored as soon as the document loads.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
.



Relevant Pages

  • RE: batch files in visual c# windows application
    ... I did not notice the bit about the window not showing, to hide the command ... >> I need a few of the buttons to run DOS batch files, ... but a C# console containing the code from the batch file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Code for Batch files.
    ... | WshShell.AppActivate "Control Panel" ... | Now I need the same function execution through batch files. ... | * opening the conntrol panel window ... | Thanks and Best Regards ...
    (microsoft.public.scripting.vbscript)
  • Re: Hiding console window fails - Windows Vista specific
    ... it has console vs desktop usage too. ... Second, the server, among its many features, it allows operators to run batch files or any module which are normally out of our control. ... If the OS is Window 2000/XP/2003/VISTA, then its easy - we use the DETACHED_PROCESS flag when spawning the operator supplied process hooks. ... The problem is that the first time after login the console window stays ... ...
    (microsoft.public.win32.programmer.kernel)
  • Re: batch question
    ... command is displayed over and over in the CMD ... window at great speed, without being executed. ... This is not a "problem" but is the way batch files work. ...
    (microsoft.public.windowsxp.general)
  • Re: Dereferencing environment variables in PB5
    ... How is changing a batch file, or, say, two batch files, one for the ... emulator and one for the actual target BSP, so much harder than changing the ... project settings in several configurations (one for emulator-debug, ...
    (microsoft.public.windowsce.platbuilder)