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


  1. Posts : 74
    windows 7
       #1

    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 Computer


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    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 Computer


  3. Posts : 640
    Windows 7 Ultimate x64
       #3

    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 Computer


  4. Posts : 1,814
    XP / Win7 x64 Pro
       #4

    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 Computer


  5. Posts : 450
    Windows 7
       #5

    I think he has the windowCLEANING theme specified (squeaky squegee).
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 08:45.
Find Us