-
March 10th, 2010, 11:27 PM
#1
Need help on Windows Batch Programming
Hi code gurus,
I've a little bit problem in batch script... I would appreciate if anyone of gurus here able to help.
Here is the code
C:\>type ie.bat
Code:
@ECHO OFF
C:\Program.exe
EXIT
Everytime I launch the batch file, the cmd windows is still there. I just want to run the program and close the cmd windows. I've tried to put EXIT at the end of the code, but it doesn't change anything.
Thanks code gurus in advance.
-
March 15th, 2010, 08:28 AM
#2
Re: Need help on Windows Batch Programming
Here's a link that talks about a similar situation you are having. If you're running XP then this might point you in the right direction.
http://www.computing.net/answers/win...dow/98455.html
-
March 15th, 2010, 09:57 AM
#3
Re: Need help on Windows Batch Programming
Launch the program with start internal command
Code:
@ECHO OFF
start C:\Program.exe
EXIT
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
March 16th, 2010, 04:27 AM
#4
Re: Need help on Windows Batch Programming
Originally Posted by viperbyte
Jump,
You have to rename your .bat file with the .cmd extension. The old .bat does not work in XP. So,, if your file was named SONY.BAT, then rename it to SONY.CMD and it will work fine... )
Safe Computing... )
Thanks viperbyte for your help. I've renamed script.bat to script.cmd. I still can launch the program but the command prompt still open.
-
March 16th, 2010, 04:28 AM
#5
Re: Need help on Windows Batch Programming
Originally Posted by boudino
Launch the program with start internal command
Code:
@ECHO OFF
start C:\Program.exe
EXIT
Thanks boudino! It works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|