Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Is it possible to create a windows batch file to do this?

29 Mar 2012   #1

windows 7
Is it possible to create a windows batch file to do this?

I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic theme.

My question is:

How do i write a simple windows batch file that when run by doubleclicking an icon will:

1) switch the theme to windows classic
2) run cubase.exe
3) switch back to windows aero theme when i exit cubase.

I appreciate you considering my query.

All the best.


My System SpecsSystem Spec
29 Mar 2012   #2

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)

Something like this should do
"%windir%\Resources\Ease of Access Themes\classic.theme" 
tasklist | find "cubase.exe" 
if errorlevel 1 "%windir%\Resources\Themes\aero.theme" 
Please change cubase filename and location for appropriate ones - I do not have that program.
Delete "pause" if you want cmd window to close upon completion too.

Personalization window will pop up, but that is a regular thing: it always pops up if you start theme file in any way.
My System SpecsSystem Spec
30 Mar 2012   #3

Windows 7 Ultimate x64

Nice work Neutron.
Do you think it would be safe for him to add the following two lines before the pause
timeout 6
taskkill /fi "WINDOWTITLE eq Personalization"
It's not really necessary, just saves him having to close the Personalization window.

The timeout period will probably need a tweak as this will depend on the performance of the computer and it might not work every time as the performance may be two or three seconds slower sometimes.
My System SpecsSystem Spec
30 Mar 2012   #4

XP / Win7 x64 Pro

Personally, I would try to address why this is happening in the first place, as it doesn't seem normal on a healthy system. Are you running any theme modifiers or third party tweaking/modifying software for Windows?
My System SpecsSystem Spec
30 Mar 2012   #5


I think he has the windowCLEANING theme specified (squeaky squegee).
My System SpecsSystem Spec

 Is it possible to create a windows batch file to do this?

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:07 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App