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: DirectX toggle?

25 Jul 2011   #1

Windows XP/Windows 7 dual boot
DirectX toggle?

I have a script I use to use for Windows XP but seems some batch commands have changed.. I want to be able to toggle on/off DirectX in Windows 7. Anyone know if this works in Windows 7 and how to fix the script?

@Echo off
Title "Toggling DX Mode"
::Mode CON: COLS=35 Lines=5
Reg query HKLM\SOFTWARE\Microsoft\DirectDraw|Findstr /I "emulationonly">Nul
If %Errorlevel%==1 (Set _CurMode=0x0)&Goto _Test
For /F "Tokens=3 skip=3" %%I In ('Reg query HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly') Do Set _CurMode=%%I
If %_CurMode%==0x0 (Set _Setting=Disable) Else (Set _Setting=Enable)
::Set Mode=1 to Disable, Mode=0 to Enable
Set _Mode=0
If /I "%_Setting%"=="Disable" Set _Mode=1
If /I "%_Setting%"=="Enable" Set _Mode=0
Reg Add HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly /T REG_DWORD /D %_Mode% /F>Nul
Reg Add HKLM\SOFTWARE\Microsoft\Direct3D\Drivers /V SoftwareOnly /T REG_DWORD /D %_Mode% /F>Nul
Echo Acceleration has been %_Setting%d
Ping -n 1 -w 5000>Nul
I keep getting the error (Set was unexpected at this time. this happens after the line...

For /F "Tokens=3 skip=3" %I In ('Reg query HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly') Do Set _CurMode=%I

My System SpecsSystem Spec
25 Jul 2011   #2

Windows 10 Pro (x64)

Why are you wanting to do such a thing?
My System SpecsSystem Spec
26 Jul 2011   #3

Windows XP/Windows 7 dual boot

An older game I play does not like hardware acceleration.. I use to disable it than play it fine.
My System SpecsSystem Spec

26 Jul 2011   #4

Windows 8.1 Pro RTM x64

What is this game? Have you checked for updates?
My System SpecsSystem Spec
26 Jul 2011   #5

Ubuntu 12.10

What game is it?
My System SpecsSystem Spec
27 Jul 2011   #6

Windows XP/Windows 7 dual boot

It's an old windows type game... Actually several games written in rtp.. I find when I disable the directx the games would no longer flicker when I go to full screen. So the toggle is what I used to do that.. rtp games are games written by fans with rpg maker which is not a new program at all so tends to have some minor issues and one is full screen flickers on many of the games.
My System SpecsSystem Spec
27 Jul 2011   #7

Ubuntu 12.10

Show me the game please.
My System SpecsSystem Spec

 DirectX toggle?

Thread Tools

Similar help and support threads
Thread Forum
How to reinstall DirectX 11 or repair DirectX 11
Can someone please provide me with instructions on re-installing DirectX 11 or repairing it? WIN 7 64Bit -
DXDiag shows DirectX 11 but Windows Experience Index shows DirectX 10
Hello, I just did a clean install on my laptop after installing a new SSD. I installed the drivers that I had to install manually, and then I did a Windows update for anything else. After getting everything setup I ran my first Windows Experience Index. Surprising, the graphics score was...
Performance & Maintenance
Geforce GT 220 is compatible with DirectX 10 but installs DirectX 11??
So I'm having a burning question pop up. My Video card is an Nvidia Geforce GT 220, and it says that its only compatible with DirectX 10. My system, however, installs DirectX 11! So do I downgrade my DirectX?
Having DirectX Problem, Specifically DirectX Diagnostic
Hello, I Have a Problem With My Direct X Working For My Lenovo Thinkpad Labtop. Specifically An Error Running Direct X Diagnostic. I Have been told this is major problem and Would Like To know If Someone would be able to assist me with this situation. Attached is my SFC Scan Results from...
Performance & Maintenance
Radeon HD 5750 directx 10 or directx 11
can someone please help me understand whats going on here with my video card ? i have a XFX HD-575X-ZNFC Radeon HD 5750 1GB 128-bit DDR5 PCI Express 2.0 x16 HDCP Ready CrossFireX Support Video Card that say it supports directx 11 . my system says it's using directx 11 but wei says the video card...
Graphic Cards
DirectX issue - setup has detected that one or more directx component
I'm having an issue where i can't reinstall directx from the latest redist on Win7 Pro x64. When i goto run the setup i just get 'setup has detected that one or more directx component files in-use by an application' then i'm forced to exit the installer. Can anyone help to resolve this??...
Graphic Cards

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