Start Vista calendar minimized from startup folder

K

KumbiaKid

Hi,

I'm using Vista (with SP2) and have set the Windows Calendar to run from the
Startup folder, but despite selecting Run: "Minimized" from the shortcut
properties, it still opens in a normal window every time I boot Vista. How
can I get it to start minimized?

The shortcut Target is: "%ProgramFiles%\Windows Calendar\wincal.exe"
The "Run" option is set to "Minimized"

Is there a command line switch to do it?

Thanks,
KumbiaKid
 
J

Jon

KumbiaKid said:
Hi,

I'm using Vista (with SP2) and have set the Windows Calendar to run from
the
Startup folder, but despite selecting Run: "Minimized" from the shortcut
properties, it still opens in a normal window every time I boot Vista. How
can I get it to start minimized?

The shortcut Target is: "%ProgramFiles%\Windows Calendar\wincal.exe"
The "Run" option is set to "Minimized"

Is there a command line switch to do it?



I think it's built into Calendar to want to run non-minimized, so changing
shortcut properties won't work. There isn't a setting within Windows
Calendar that I can see either that would help either.

So a way round this would be to write a small script to launch Calendar and
then immediately minimize it. If you're familiar with VBScript, JScript,
Powershell or another scripting language, then it's possible with one of
these. Post back if you need some tips.
 
K

KumbiaKid

Thanks Jon. Yet another example of Microsoft's arrogance - deciding that
users have to open an app in a window whether they want to or not and flying
in the face of their own standards (i.e., ignoring the shortcut
specifications). Thanks for the tip. If you wouldn’t mind, a snippet of
VBScript would be appreciated including how to set it up and implement it.
 
J

Jon

KumbiaKid said:
Thanks Jon. Yet another example of Microsoft's arrogance - deciding that
users have to open an app in a window whether they want to or not and
flying
in the face of their own standards (i.e., ignoring the shortcut
specifications). Thanks for the tip. If you wouldn’t mind, a snippet of
VBScript would be appreciated including how to set it up and implement it.

You're welcome. You could try the following code ...

Paste into a new notepad file, paste in the code below, and save with a
..vbs extension. Double-click the new file to see that it behaves the way you
like. If so, then drag a shortcut to it to the 'Startup' folder.

Start > All Programs > [scroll down to startup] > Right-click 'startup' >
open > drag in the shortcut to the .vbs file



'VBScript Code
'----------------------------------
set shell = CreateObject("Shell.Application")
Set WshShell = WScript.CreateObject("WScript.shell")


ProgramFiles = WshShell.ExpandEnvironmentStrings("%ProgramFiles%")
shell.shellexecute ProgramFiles & "\Windows Calendar\wincal.exe"


'Activate the window
counter = 6000
activated = false
do
activated = WshShell.AppActivate("Windows Calendar")
wscript.sleep 100
counter = counter - 1
if counter = 0 then
wscript.quit
end if
loop until activated = true


shell.MinimizeAll


'------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top