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
create a popup reminder using batch file
Hi there, In XP I used 2 batch files to create a popup reminder in a cmd window. I don't want to use a program like task manager as it requires to much input for the type of reminder I want. With these batch files I would run one of them, enter a time, enter a description and that was it. A cmd...
General Discussion
How to Create a Batch file for last logged on for a remote use
So I am looking to create some kind of batch file or script where I can click on it....it asks for the machine name, I enter it and then it displays the last logged on user. The following command " wmic /NODE:"computername" computersystem get Username" gives me the desired results but I am...
Network & Sharing
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
Batch file to create a folder with name of the time.
I'm trying to write a batch file that when run creates a folder named "Backup" followed by the time it was created, and then copies files to that folder. When I run md "C:\Users\MasterControlProgram\Documents\MC Server With Backup\Backups\Backup %DATE%\" xcopy /e /v /y...
Backup and Restore
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 01:01.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App