DirectX toggle?

molitar

New member
Local time
7:56 PM
Messages
6
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?

Code:
@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
:_Test
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 1.0.0.0 -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 Computer

Computer Manufacturer/Model Number
built myself
OS
Windows XP/Windows 7 dual boot
CPU
x64 dual core 4600+
Motherboard
MSI C9A2
Why are you wanting to do such a thing?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
An older game I play does not like hardware acceleration.. I use to disable it than play it fine.
 

My Computer

Computer Manufacturer/Model Number
built myself
OS
Windows XP/Windows 7 dual boot
CPU
x64 dual core 4600+
Motherboard
MSI C9A2
What is this game? Have you checked for updates?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
What game is it?
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv6-2020ev
OS
Ubuntu 12.10
CPU
Intel Core i7 720QM
Motherboard
Its a HP secret...
Memory
4GB RAM
Graphics Card(s)
NVIDIA GeForce 230M
Sound Card
IDT
Screen Resolution
1366x768
Hard Drives
500 GB
Mouse
HP
Internet Speed
4 Mbps
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 Computer

Computer Manufacturer/Model Number
built myself
OS
Windows XP/Windows 7 dual boot
CPU
x64 dual core 4600+
Motherboard
MSI C9A2
Show me the game please.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion dv6-2020ev
OS
Ubuntu 12.10
CPU
Intel Core i7 720QM
Motherboard
Its a HP secret...
Memory
4GB RAM
Graphics Card(s)
NVIDIA GeForce 230M
Sound Card
IDT
Screen Resolution
1366x768
Hard Drives
500 GB
Mouse
HP
Internet Speed
4 Mbps
Back
Top