Jump to content
Sign in to follow this  
Dizzy

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

Recommended Posts

Dizzy

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

Share this post


Link to post
Share on other sites
Valik

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).

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.