Jump to content

Start Word With "dot" To Open In Hide-mode


 Share

Recommended Posts

Hi All!

I want to modify the normal.dot for a few users.

The script should be placed in the logon-script and the user shouldn't see anything about the actions of the normal.dot. :whistle:

So my script :

$shortname=FileGetShortName ( "C:\somewhere\old-normal.dot" )
     Run ( @ProgramFilesDir & "\Microsoft Office\Office\winword.exe " & $shortname, "", @SW_HIDE )

or

;    RunWait ( @ProgramFilesDir & "\Microsoft Office\Office\winword.exe " & "C:\somewhere\old-normal.dot", "", @SW_HIDE )

In this case @SW_HIDE does not work B) why?

Can anyone help me?

Thx

Dizzy

Link to comment
Share on other sites

There is no promise that a window will obey the state flag you pass it. Most do, but not all do. About all you can do is run Word and manually hide it after it appears (Will cause a flicker on screen, though).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...