1.

Solve : MS-DOS Application Start Minimized?

Answer»

Hello everyone,
I've got an issue I'm trying to figure out. I've wrote a simple batch file to initalize and application. Outlook 2003.
It's working great, however I need outlook to start Minimized and not maximized. Any ideas?
If you're using the START command, just add the switch /MIN and that'll do the trick.Awesome Thanks.

Well it works somewhat....

Here is my line of code

start /MIN " " "Q:\program files\microsoft office 2003\office11\outlook.exe"
This works fine....

I'm now trying to pass the parameters "%*" sooooooo I get an error with this command

start /MIN " " "Q:\program files\microsoft office 2003\office11\outlook.exe" "%*" and this one
start /MIN " " "Q:\program files\microsoft office 2003\office11\outlook.exe" parameter "%*"

Any ideas?

what error do you get?I figured it out.

Now I just need to figure out if I can setup a timer of some sort that will give me a 5 minute delay,
then close the outlook exe I open previously. You know I could use ping 0.0.0.0 -n#

# equaling the NUMBER of seconds to ping and then kill the process.... hrmmm that might work! Quote from: v3nom on January 24, 2008, 07:00:31 AM

I figured it out.

Now I just need to figure out if I can setup a timer of some sort that will give me a 5 minute delay,
then close the outlook exe I open previously.

What was the issue? (could be good for others who may encounter similar ISSUES)I had the /MIN at the end of my statement... moved it to the correct location and it all worked.ok. Thanks.Ok I got eveything I need except for one issue...
Here's my Code now..

@echo off
start /MIN "" "Q:\Program Files\Microsoft Office 2003\OFFICE11\OUTLOOK.EXE" %*
start "" "Q:\Program Files\BPI_Apps\enhpurch.exe"

ping 192.168.23.1 -n 180
tskill OUTLOOK

This works great the first time... when I run it a second I'm getting a prompt for safe mode for outlook.
So my question is as follows, is there any other way to close outlook GRACEFULLY ? So this safe mode option will be disabled.Is outlook actually still trying to process anything (emails, calendars, etc), or is it just sitting idle when tskill closes it?Sitting IDLEI hate to be of no use, but I'm not aware of another command to kill an app in dos that will close the program PROPERLY.

Anyone else?


Discussion

No Comment Found