We help IT Professionals succeed at work.
Get Started

need batch file for windows command prompt to open, copy a file start a program and then close

Last Modified: 2013-11-20
i need a batch file that i can run that will do the following

copy an   .ini file
copy an .exe file
run the .exe file
close the batch window, while leaving the program running.

what i have so far is

xcopy P:\suite\new\ca.exe "c:\program files\ca" /Y
xcopy P:\suite\new\ca.ini c:\ca.ini /Y

"c:\program files\ca\ca.exe"


this works fine except that it leaves the command window open until i exit the ca.exe program.

this is a problem because sometimes in moving in and out of forms within the program, teh command window ends up on top of the pile. and not consistantly.

so what i was hoping to do was to be able to start the program within the command window and then just exit the command window.  leaving the program running.

Watch Question
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE