want to avoid a dialog box when running a script

I have created a batch file (.cmd) that adds a few  registry parameters to the users profile and then launch the application. then published the file in citrix. when the user is launching this file, there is a dialog box asking the user to select either

RUN---SAVE---Cancel

when he clicks on run, it works fine. i dont want this dialog box to appear. is there a switch that i need to add to supress this dialog box and directly run the batch file
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.

Frosty555Commented:
The dialog box is a security measure put in place since .CMD files are often used for malicious purposes. It also is shown for files that have been freshly downloaded from the internet.

There should be a checkbox on that dialog box that says "Always ask before opening this file" or something on that order that you can uncheck to suppress the dialogue box.
0
Frosty555Commented:
Alternatively, try running CMD.EXE with command line parameters pointing to your batch file.

E.g.
   cmd.exe /c "C:\somefolder\somescript.cmd"

This will launch CMD.EXE which should be trusted.
0
mgmohiuddinAuthor Commented:
i did that but the the application is not starting and giving an error
0
HerrmannatorCommented:
Where is the batch file located?  Sounds like maybe it is in a network location?  If so, can it be stored on the C drive of the Citrix server to see if the warning message goes away?
0
HerrmannatorCommented:
(and can every executable referred to in the batch file also be located on the C drive?)
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
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.