1.

Solve : Minimise a batch window?

Answer»

I'm running a batch file from a Novell login script and I would like the dos window to be minimised when the batch file runs. I cannot do this by using the/min command so I need some WAY of minimising the window from within the batch file itself. The batch file is as follows:

@ECHO off

C:
COPY z:\outgoing\fi_nt86.exe c:\AVUPDATE
COPY z:\outgoing\ii_nt86.exe c:\AVUPDATE
COPY z:\outgoing\Siglist.txt c:\AVUPDATE

net use \\192.9.200.203\IPC$ "win2000"

wscript.exe "o:copytemp.vbs"

wscript.exe "o:UserFileBackup.vbs"

wscript.exe "o:proxyswitch.vbs"

exit

I would really appreciate it if someone has the answer to my problem.Quote

I need some way of minimising the window from within the batch file itself

I'm not aware of any mechanism to do that. Why can't you use START /min batchname.bat?

8-)I'm invoking the batch file from a Novell login script using the '@' command and /min doesn't work with this.

Unless I'm WRONG. I have tried it a few times though.You may be SOL on this. I did find the include command, however it offers no parameters for minimizing the window. Neither do # and @.

8-)Don't know if this will work or not, but anything is worth a try. See if you can force the .bat file to open minimized from its properties dialog.I can't see any option for this in the property dialogue.

There must be a way.....Must be XP! Another way MS chose to screw us. A work around to this is possible if you have access to a W98 machine. Copy a .pif file from W98 onto the XP machine, then modify it to POINT to the proper program. This will give you the same properties control that W98 has.I think Sidewinder has the right idea.

Instead of calling your login script like this:
Code: [Select]@login.bat
Call it with the start command like this:
Code: [Select]start /min login.batI would obviously use the /min to minimise a batch file window normally. But as I'm invoking the batch file from a Novell login script using the '@' command i'm unable to do this.

Thats why I asked if there was any other way. I tried the .pif file thing but Novell doesn't let me invoke the shortcut which would open minimised. Just one other point as well.....The reason i'm using the '@' command is because the batch file will run in the background to speed up the login process.


Discussion

No Comment Found