Bat skrá, hvernig á minn hugbúnaður að keyra

Skjámynd

Höfundur
loner
Nörd
Póstar: 144
Skráði sig: Sun 25. Jan 2009 12:50
Reputation: -1
Staða: Ótengdur

Bat skrá, hvernig á minn hugbúnaður að keyra

Pósturaf loner » Sun 25. Des 2016 01:36

Þið getið notað þetta til að ákvarða hvaða kjarna hugbúnaður notar í CPU einnig forgang.
Í þessu er einnig skipun sem hægt er að virkja með því að fjarlægja "rem" í byrjun línu
getið lesið meira um það hér: https://en.wikipedia.org/wiki/Executabl ... protection
En ég mæli ekki með að þið notið þessa skipun án þess að vita hvað þið eruð að gera, og ég tek enga ábyrgð á því.

http://s000.tinyupload.com/index.php?fi ... 2360297227

Copy og paste í notepad og vistist sem Bla-bla.bat

Kóði: Velja allt

title                   Loner 2016 utgafa 1.2.2 Prufad a Win 10.

echo Viltu Ath. hvort komin se ny utgafa:
@echo off
:: Gott er ad nota thetta til ad keyra upp hugbunad, leiki og thad sem keyrist illa eda ekki i Windows 10, einnig ef thu ert ad setja mikið upp í fjolda tolva.
:velja

set /P c=Veldu j eda n[J/N]? og yttu a ENTER
if /I "%c%" EQU "j" goto :Fasi1
if /I "%c%" EQU "N" goto :Fasi2
goto :velja


:Fasi1
SET BROWSER=chrome.exe
SET WAIT_TIME=2
START %BROWSER% -new-window "www.spjall.vaktin.is/viewtopic.php?f=7&t=71635"

::_________________________________________________________________________________________________________________________________________

:Fasi2
cls


echo
echo    Ef thad koma raudir stafir tha er eitthvad ekki rett sett upp her?.
::_________________________________________________________________________________________________________________________________________
:: "Varud notid ekki bcdedit nema thid vitid hvad thid erud að gera og hafid kynnt ykkur thad vel"
:: "og hvaða PAE skipun þið ætlið að nota með DEP"
:: sja: https://msdn.microsoft.com/windows/hardware/drivers/devtest/boot-parameters-to-configure-dep-and-pae
:: "Eg tek enga abyrgd a ykkar notkun a thessari skipun"

:: thegar bcdedit er notad til breyta nx tha tharf að keyra þessa skra sem Admin og endurraesa

rem bcdedit.exe /set {current} nx AlwaysOn
:: sja stillingar her fyrir nedan.

::  0   AlwaysOff   DEP is disabled for all processes.
::  1   AlwaysOn   DEP is enabled for all processes.
::  2   OptIn   DEP is enabled for essentials Windows programs and services only. Default setting.
::  3   OptOut   DEP is enabled for all processes except for excluded programs and services.

wmic OS Get DataExecutionPrevention_SupportPolicy
:: Synir stodu a DEP, sja listann her ad ofan
pause
::_________________________________________________________________________________________________________________________________________
:: Skipanir her fyrir nedan eru fyrir haminn sem forritid/leikurinn a ad keyra i t.d. a ad keyra i win xp ham, fjarlaegid "rem" sem er i byrjun linu, ef thid viljid virkja thaer
rem setlocal
rem REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "E:\Slod\a\moppu\FORRIT.exe" /d "sja stillingar her fyrir nedan " /f
rem start "" regedit

:: Compatibility Modes
:: ~ WIN95 - Windows 95
:: ~ WIN98 - Windows 98
:: ~ WIN4SP5 - Windows NT 4.0 SP5
:: ~ WIN2000 - Windows 2000
:: ~ WINXPSP2 - Windows XP SP2
:: ~ WINXPSP3 - Windows XP SP3
:: ~ VISTARTM - Vista
:: ~ VISTASP1 - Vista SP1
:: ~ VISTASP2 - Vista SP2
:: ~ WIN7RTM - Windows 7
:: ~ WINSRV03SP1 - Windows Server 2003 SP1
:: ~ WINSRV08SP1 - Windows Server 2008 SP1
:: ~ WIN8RTM - Windows 8

:: Display Settings
:: ~ DISABLETHEMES - Disable Visual Themes
:: ~ 640X480 - Run in 640 x 480 screen resolution
:: ~ HIGHDPIAWARE - Disable display scaling on high DPI settings
:: ~ 256COLOR - Run in 256 colors
:: ~ 16BITCOLOR
:: ~ DISABLEDWM - Disable Desktop Composition

:: Privilege Level
:: ~ RUNASADMIN - Run program as an administrator
:: ~ DisableNXShowUI "Varud! til ad nota thetta tharf virkja bcdedit.exe her ad ofan"
 
:: Daemi "~ RUNASADMIN HIGHDPIAWARE 640X480 256COLOR WIN95" muna eftir tilda merkinu ~ , Windows 10 tharf thad.
::___________________________________________________________________________________________________________________________________________
start /d "e:\Slod\ a\ moppu" Forrit.exe
echo svo tharf ad bida eftir ad FORRIT raesist til ad nota naestu skipun.
pause
::_________________________________________________________________________________________________________________________________________
:: Her fyrir nedan er skipun sem akvardar hversu marga kjarna forritid notar.
:: FORRIT1 er thad sem serd i Task Manager, Details
:: ef thessi skipun virkar ekki tha tharf ad virkja Powershell
::                                                                    =  sja CPU samtolu her fyrir nedan
PowerShell "$Process = Get-Process FORRIT1; $Process.ProcessorAffinity=12"
:: 1 = CPU0 thetta er fyrsti kjarninn.
:: 2 = CPU1
:: 4 = CPU2
:: 8 = CPU3
:: 16 = CPU4
:: 32 = CPU5
:: 64 = CPU6
:: 128 = CPU7
:: Daemi fyrir nedan.
:: 15 = CPU0, CPU1, CPU2, og CPU3 (1+2+4+8 = 15)
:: 112 = CPU4, CPU5, og CPU6  (16+32+64 = 112)
pause
::_________________________________________________________________________________________________________________________________________

:: Naesta skipun setur forgang a FORRIT.exe i CPU
wmic process where name="FORRIT.exe" CALL setpriority 32768
:: getid lika gert svona: wmic process where name="FORRIT.exe" CALL setpriority "above normal"

:: sja stillingar her fyrir nedan.
:: idle: 64
:: below normal: 16384
:: normal: 32
:: above normal: 32768
:: high priority: 128
:: real time: 256
pause
:: Endir


Kannski var þetta rétt hjá þér allan tímann. !