Is it possible to create a bat file that changes multiple GUI settings


  1. Posts : 74
    windows 7
       #1

    Is it possible to create a bat file that changes multiple GUI settings


    Evening all,

    I regularly need to turn off windows 7 GUI settings such as aero,certain services,unload certain apps in memory, all in win 7 ultimate. These settings will always be the same. I would like to know if it is possible to create some sort of file*batch file?) which would turn these settings off, and also a separate file which would turn them back on again when i wanted them all back.

    I am familiar with working with simple .bat files, and converting them into .exe's and attaching them to shortcut icons. So my only question is where do i find examples of how to write lines of code to manipulate the windows interface.

    Thanks in advance

    Andy
      My Computer


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

    I think that your question is a bit too general ("How to write lines of code to manipulate the windows interface?")

    Here are solutions for tasks you have already mentioned:
    To start/stop services you can use commands NET START/ NET STOP
    net start / net stop / net pause / net continue

    To unload (kill) processes you command Taskkill

    The interesting one would be Aero. I propose the following solution:
    Save your aero theme, if you are not using default one.

    To switch off aero use classic theme, just execute this line:
    Code:
    %windir%\Resources\Ease of Access Themes\classic.theme
    To switch aero on execute your theme
    Code:
    %USERPROFILE%\AppData\Local\Microsoft\Windows\Themes\YOURsavedTHEME.theme
    Or default aero one
    Code:
    %windir%\Resources\Themes\aero.theme
    If problem with spaces in names of folders will occur use DOS links:
    C:\progra~1 insread C:\Program Files\

    Basically, leave first 6 letters then put ~ and ordinal number of the file/folder name.
    Ex. C:\Program Files\ would be C:\progra~1
    but C:\ProgramData would be C:\progra~2
      My Computer


  3. Posts : 74
    windows 7
    Thread Starter
       #3

    Yes, i agree my request was to general, and a little vague. BUt you HAVE now resolved all my issues.

    Secifically :-

    1.switch from aero theme to xp classic - (thanks to neutron16)

    2.Unload particular services that i KNOW i won't use during my current session(thanks to neutron16), by using net stop/start. I'll be using these commands to (net) stop my stardock deskscapes,windowsblinds, (net) start Cubase 5 and novation Automap

    3. Switch from "power saver" to "high performance" - which i already know how to do(due to Winsevenforums site)

    4. Switch audio output from speakers to headphones.- which i already know how to do(due to Winsevenforums site)

    At the W/E i shall test each line in the windows Command" window - to test each command is working satisfactorily, then combine those lines into a batch file, convert that batch file into an .exe, then attach that .exe to a shortcut on the windows taskbar.

    Thanks for your suggestion, i appreciate your help so far. Especially the method for switching for aero theme to xp classic, i shall try this when i return to my win 7 machine later this week.


    Thank you Sevenforums
      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 12:24.
Find Us