logon.bat start minimized

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Javamatic
Posts: 7
Joined: 13 Feb 2013 14:13

logon.bat start minimized

#1 Post by Javamatic » 14 Feb 2013 09:06

I've made a logon script ( logon.bat) , but it starts minimized ...
i want logon.bat starts automatically open on the desktop of the user...
so the user can read the message directly from his /her screen...

who can help me ?
Thanks in advance !

Javamatic
Posts: 7
Joined: 13 Feb 2013 14:13

Re: logon.bat start minimized

#2 Post by Javamatic » 14 Feb 2013 14:10

I mean ; how can i start a dosbox open , but not minimized on the taskbar ?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: logon.bat start minimized

#3 Post by foxidrive » 14 Feb 2013 18:02

Change the properties of the batch file.

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: logon.bat start minimized

#4 Post by abc0502 » 14 Feb 2013 18:05

How you start your batch file? using what? schedule task, startup folder, ..etc

Javamatic
Posts: 7
Joined: 13 Feb 2013 14:13

Re: logon.bat start minimized

#5 Post by Javamatic » 17 Feb 2013 10:49

The logon.bat file starts automatically when a user logs in on his workstation.
The logon.bat file will be activated via a GPO on a winows server 2008 sr2.
It is located in the Netlogon share on the server 2008sr2.

Logon.bat starts well , but i want it's "open"on the desktop of the user.
Now it's minimized on the taskbar....

who knows a solution ...?
Thanks in advance.

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: logon.bat start minimized

#6 Post by abc0502 » 17 Feb 2013 14:59

have you tried what foxidrive said?
If it possible try posting the code or search the file for "/MIN" if it is there try removing it.
and when i asked how it's start i was meaning what make it start, because it is in a start up folder or it run on specific time using schedule task ? because on of them may have the "/MIN" option or something similar.

Javamatic
Posts: 7
Joined: 13 Feb 2013 14:13

Re: logon.bat start minimized

#7 Post by Javamatic » 18 Feb 2013 14:40

Thanks for your reply anyway. Yes i've tried what foxidrive suggested , but alas it still starts minimized. I also tried to put "start /max" in the logon.bat file , but this was also not the solution because an empthy dosbox started maximized but not the logon.bat.
Logon.bat starts from the netlogon share on the server 2008sr2.

Here is the contents of logon.bat ;
@echo off

conio.h.
color 17
mode 60,20
echo.



echo Hello , %username% , how are you today ?
echo Your workstation name is %computername% ...
echo.

echo Have a pleasant day !


echo.
echo.
echo.
echo.
@pause > nul imo:no

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: logon.bat start minimized

#8 Post by abc0502 » 19 Feb 2013 00:32

I also tried to put "start /max" in the logon.bat file
it should be used to launch the batch file not to put it in the batch file

something like this in cmd window:

Code: Select all

start "title_for_the_window" /Max "C:\logon.bat"


sorry if i'm missing something here but i never used dosbox before.

If you just want to display information to the user try this it might work for you

Code: Select all

@Echo off

Msg * Hello , %username% , how are you today ?
Msg * Your workstation name is %computername%
Msg * Have a pleasant day !

Exit /B

Javamatic
Posts: 7
Joined: 13 Feb 2013 14:13

Re: logon.bat start minimized

#9 Post by Javamatic » 21 Feb 2013 03:27

Thanks a lot ; abc0502.! I've use'd your script because it's more logic.

Post Reply