Trying to run a program interactively from a batch file

Running Windows 7 pro on a HP z230 computer

I am trying to get a program to run in batch mode.
The batch file is very simple.
I have attached it as AmibrokerData bat.txt

The batch file runs a vbs file.  I have attached the vbs file as Amibroker_100vbs.txtAmibroker_100vbs.txtAmibrokerData-bat.txt.  This vbs file runs a program called Amibroker.

When I launch the batch file interactively, it runs successfully.
When I schedule the batch file to run, nothing happens.

Amibroker cannot run in the background; it has  to open and display on the screen.
I think the problem is Amibroker cannot run interactively when the batch file is scheduled.

Amibroker requires administrator privileges in order to execute.

What commands could I put into a batch file to allow the vbs script in the batch file to run interactively from a scheduled batch file?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Andrew LeniartFreelance JournalistCommented:
In scheduled tasks on the General Tab, under "Security Options" try scheduling the task with a user account that has Administrative privileges rather than using the INTERACTIVE user/group. Also select "Run with highest privileges"  Does that help?
John TsioumprisSoftware & Systems EngineerCommented:
Well you can wrap the vbscript with administrative privileges and create an .exe that does the job..the procedure is described here and i can assure you that it works because i had the exact same issue...

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
Shaun VermaakTechnical SpecialistCommented:
Change the bat to the following, change the timeout and run it with NSSM - the Non-Sucking Service Manager

rem:  ====================== AmibrokerData - export data from Amibroker to CSV file ================

cd \
cd Amibroker_Project

rem:  Cscript Amibroker_100.vbs SP500Param.txt
Call Amibroker_100.vbs SP500Param.txt

timeout 900
Goto Start

Open in new window

Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

donpickAuthor Commented:
Mr Leniart:
  Thank you for your suggestion.  I tried this and it did not work.

Mr. Tsioumpris:  
  Thank you for the link.  I never have heard of this idea.

Mr. Vemaak:  
  You say to change the timeout.  Change it to what???   Please provide details.  I know nothing about the Non Sucking Service manager.
donpickAuthor Commented:
Mr. Tsioumpris:
  My vbs requires a parameter file  (you can see this parameter file in my bat file.)

  If I use your idea,  how do I feed the parameter file to the exe file once it is created?
Shaun VermaakTechnical SpecialistCommented:
You say to change the timeout.  Change it to what???
Anything you want. 900 in example is 15min
donpickAuthor Commented:
Thank you all for your answers.  I appreciate your prompt replies.  I will work with this information.  If I need further help I will post more questions.
John TsioumprisSoftware & Systems EngineerCommented:
In order to pass arguments to VBScript you need

Open in new window

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 OS

From novice to tech pro — start learning today.