popup message in a batch file

I am creating a batch file that actually copies a couple of files to all client computers, runs an msi fileto upgrade the citrix ica client. the upgrade will fail if the client is in use so i am using pskill to kill the process before the .msi runs. to make sure the client does not reopens the ica client i want to display a message on the client computer in a window for some 5 minutes and automatically close the message after 5 minutes.  my script looks like this

@ECHO OFF
cd\
md tools
cd tools
xcopy \\computer name\folder\tools\*.* c:\tools
pskill -t wfica32.exe
pskill wfcrun32.exe
sleep 10
start "" \ \\computer name\folder\webcustom.msi

i want the following message to be displayed as a message box and automatically close after 5 minutes

Computer department ------as the title
Citrix ICA client upgrade in progress, Please do not open any citrix application
after 5 minutes this message should close

i am already copying tools like sleep and pskill so we can copy an additional tool also which can display a message. need this urgent please



citri
mgmohiuddinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
Easiest solution, assuming this is running on XP or later:
Add
msg * /time:300 "Citrix ICA client upgrade in progress, please do not open any Citrix application. Thank you, your Computer Department"
right before you start the installation.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
merowingerCommented:
i dont know how to handle this with batch but you could call a vbscript which creates the popup message.

@ECHO OFF
cd\
md tools
cd tools
xcopy \\computer name\folder\tools\*.* c:\tools
pskill -t wfica32.exe
pskill wfcrun32.exe
sleep 10
start "" \ \\computer name\folder\webcustom.msi
wscript.exe popup.vbs


Another possibility is to write the whole code in vbscript
set objShell = CreateObject("Wscript.Shell")
objShell.Popup "Please do not open the ICA Client",300,"Information"

Open in new window

0
Bill PrewCommented:
0
Steve KnightIT ConsultancyCommented:
If you did want to keep it in the batch file you could make the window change colour, size, title etc. e.g. and display a message and then wait and start this at the end of your current script, i.e.

@ECHO OFF
cd\
md tools
cd tools
xcopy \\computer name\folder\tools\*.* c:\tools
pskill -t wfica32.exe
pskill wfcrun32.exe
sleep 10
start "" \ \\computer name\folder\webcustom.msi
title Computer Department
color 4f
mode 60,5
cls
echo Please do not open the ICA Client until this window closes.
ping 127.0.0.1 -n 301 >NUL 2>&1
color 0f
mode 80,25
cls
exit
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.