954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to start a program minimized with a for %%a do loop?

Hello,

I want to run a program from a batch file minimized. Normally that can be done using

start /min myprogram.exe


However I want to run this program with a for loop like so

for %%a in (*.avs) do myprogram.exe -parameter1 -paramater2


This works great for looping the program but I need it to start the program minimized.

I tried the following but it didn't work.

for %%a in (*.avs) start /min myprogram.exe myprogram.exe -parameter1 -paramater2


Is there any way to do this?

papafreebird
Newbie Poster
1 post since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You