What batch command parameter should I use for opening an Excel file in minimized window?

I need to use a batch file to open an Excel file and put it in a minimized window. What parameters should I use?
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.

Aland CoonsSystems EngineerCommented:
start /min "" "C:\Program Files\Microsoft Office 15\root\office15\EXCEL.EXE"

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
Aland CoonsSystems EngineerCommented:
This can be used to launch any number of applications minimized you just to adjust the path to match the executable:

start /min "" "C:\Windows\system32\notepad.exe"
CastlewoodAuthor Commented:
But I need to open a specific existing Excel file. Should I put the file name inside the double quotes?
CastlewoodAuthor Commented:

Thank you but I tested and found It works on notepad but not on Excel. For example,

Start /min c:\test.txt
will open the test.txt file in a minimized window but
Start /min c:\test.xlsx
will NOT open the text.xlsx in a minimized window.
You could accomplish this via a script file (i.e. a .vbs file).  Run the following code (which you'd save as a .vbs file)

VBS code example (replace C:\Directory\Subdirectory\Excel file name.xlsx with the applicable Excel file's path and file name)

Set objWS = CreateObject("WScript.Shell")
objWS.Run "Excel.exe " & Chr(34) & "C:\Directory\Subdirectory\Excel file name.xlsx" & Chr(34), 2
Set objWS = Nothing

Open in new window

If you don't want to call the VBS file directly, you could create a batch file to execute it for you

Batch file code  (replace C:\Directory\Subdirectory\NameOfVBSFile.vbs with the applicable VBS file's path and file name):
%WINDIR%\SysWOW64\cscript.exe "C:\Directory\Subdirectory\NameOfVBSFile.vbs"

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
Microsoft Excel

From novice to tech pro — start learning today.