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
bethy1234

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.

Andy


My System SpecsSystem Spec
.
29 Mar 2012   #2
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

Something like this should do
Code:
"%windir%\Resources\Ease of Access Themes\classic.theme" 
"C:\location\cubase.exe" 
tasklist | find "cubase.exe" 
if errorlevel 1 "%windir%\Resources\Themes\aero.theme" 
pause
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
Duzzy

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
Code:
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
FliGi7

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
JimLewandowski

 
 

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

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




Thread Tools




Similar help and support threads
Thread Forum
How to create a shortcut to batch file one folder up
Hello I have been trying to create a shortcut to launch a batch file one folder up from the shortcut location. I have been able to do this using and intermediate batch file in the same folder as the shortcut as follows: Intermediate.bat: @echo off FOR %%V IN ("%~dp0..\") DO set curdrv=%%~dpV...
Performance & Maintenance
Windows Update - Win 7 Ent x64 - create batch file to install updates
Greetings, new to the forum. I apologize in advance as I'm sure this topic has been posted before, but didn't find anything that addressed this formally... So, the idea is that my company has a ton of desktops, connected to a domain, most of which do not have over 2gigs of RAM on them. When said...
Windows Updates & Activation
Need help to create batch file for IE with following settings
I am new here and wanted some help. I wanted to know if I can do some internet explorer setting using batch file. Settings would be like this A - Home page - about:blank A.1 - Browsing history - marked on delete browsing history on exit. A.1.1 - Settings - enables radio button (Every time...
Chillout Room
Create a batch file that mimics Alt+Tab key presses
What I want to do is a batch file or program so that when you open it, it mimics key presses Alt+Tab. Or at least tell me where's the Flip2D program location I need it because I want my Synaptics touchpad to open it (this program) when a I press the upper left corner. Thanks!
Software
How to create a batch file that will move files based on the file type
How to create a batch file that will move files based on the file type? My Requirement : I need a batch file to copy all .doc files in all my HardDisk to a removable disk say (Z: drive) . Can anyone make it possible using a batch file?Please...Its urgent...
General Discussion


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 15:17.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App